Re: Proxy (determining client's real IP address)

On Thu, Aug 23, 2001 at 04:04:55PM +0530, Ajay wrote:

>     i m writing a small webserver. i just want to know that when the client connects to the webserver through proxy
> th webserver gets the  proxy ip. is there any way by which i can get the actual client ip.

Some HTTP proxies will provide aditional request headers to indicate the
originating IP address (e.g., squid's forwarded_for directive) but such
information is rare, optional, and cannot be trusted (unless you control 
the proxy server that is adding the request header). Even when the 
information can be trusted, it often refers to unroutable address space.

-Peter

Received on Thursday, 23 August 2001 14:21:53 UTC