Re: $REMOTE_ADDR behind a proxy?

From: Date: Wed, 07 Nov 2001 17:22:35 +0000
Subject: Re: $REMOTE_ADDR behind a proxy?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14113@lists.php.net to get a copy of this message
I'm not sure of what's going on. Try using phpinfo() and take a look in Apache Enviroment section. I've just seen my squid.conf and I didn't find anything that could justify this. By the way, I'm using Squid-2.3.STABLE3, PHP-4.0.3 and Apache 1.3.19 HTTP_VIA: 1.1 firewall.intranet.telecorp.com.br:3128 (Squid/2.3.STABLE3) HTTP_X_FORWARDED_FOR: 192.168.1.45 REMOTE_ADDR: 200.183.206.3 On Wed, 7 Nov 2001, Bruno Gimenes Pereti wrote: > 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 > > > > > -- > 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 Desenvolvimento hoshi@telecorp.com.br Phone / Fax: (55) +41 345-4461 http://www.telecorp.com.br "Antes de mergulhar em alguma coisa, dê um passo atrás e examine o contexto."

« previous php.db (#14113) next »