Re: [squid-users] Real IP address

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 31 Jan 2003 23:59:56 +0100

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/
Received on Fri Jan 31 2003 - 16:00:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:01 MST