Re: $REMOTE_ADDR behind a proxy?
| From: | Bruno Gimenes Pereti | Date: | Wed, 07 Nov 2001 16:58:02 +0000 |
| Subject: | Re: $REMOTE_ADDR behind a proxy? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14109@lists.php.net to get a copy of this message | ||
Thank's Masaru but it didn't work for me. I'm running RedHat-7.1,
Apache-1.3.19, Squid-2.3.STABLE4 and PHP-4.0.4 on the server. In the client
IE 5.0.
When I access form.php:
Seu IP: <? printf("%s", $REMOTE_ADDR); ?><br>
Seu Proxy: <? printf("%s", $HTTP_VIA); ?><br>
Seu IP: <? printf("%s", $HTTP_X_FORWARDED_FOR); ?><br>
I get:
(with proxy)
Seu IP: 123.456.789.123 [My proxy server]
Seu Proxy:
Seu IP:
(without proxy)
Seu IP: 192.168.0.99 [My IP]
Seu Proxy:
Seu IP:
Do I need to install or config something?
Thank's again,
Bruno Gimenes Pereti.
----- Original Message -----
From: "Masaru Hoshi" <hoshi@telecorp.com.br>
To: "Bruno Gimenes Pereti" <pereti@ump.edu.br>
Cc: "PHP-DB" <php-db@lists.php.net>
Sent: Wednesday, November 07, 2001 2:38 PM
Subject: Re: [PHP-DB] $REMOTE_ADDR behind a proxy?
>
> $HTTP_VIA -> The firewall / Proxy Server
> $HTTP_X_FORWARDED_FOR -> The User real IP Address
>
> On Wed, 7 Nov 2001, Bruno Gimenes Pereti wrote:
>
> > Who can I get the real IP from someone that are accessing my php page
> > throught a proxy?
> >
> > Thank's
> >
> > Bruno Gimenes Pereti.
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> Hoshi, Masaru
> Webdevelopment hoshi@hoshi.com.br
> http://www.hoshi.com.br
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>