Squid saves the clients IP address in the custom X-Forwarded-For HTTP
header. Just use the last element of HTTP_X_FORWARDED_FOR instead of
REMOTE_ADDRESS in your application.


Note: The header may contain a list of IP addresses if the user has
passed via a chain of Squid proxies.

Regards
Henrik



fgiorgetti wrote:
> 
> Hi All,
> 
> I have a squid running on port 3128 and a apache server
> on port 80 / 1001 of the same machine.
> My users is using his http_proxy server as
> <MYIPADDR>:3128 and its fine.
> 
> But in my web server I have an application that needs
> the clients real ip address, and its getting the proxy
> server ipaddr. (ok, I know that its right :) )
> 
> What can I do to get the client real ip address in my
> web application or to bypass the proxy when the client
> try to access the ports 80 / 1001 of my web server ?
> 
> Thanks.
> 
> Fernando Giorgetti
> 
> 
> __________________________________________________________________________
> E-mail Premium BOL
> Antiv�rus, anti-spam e at� 100 MB de espa�o. Assine j�!
> http://email.bol.com.br/

Reply via email to