W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 2001

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

From: Peter W <peterw@usa.net>
Date: Thu, 23 Aug 2001 09:20:43 -0400
To: http-wg@cuckoo.hpl.hp.com
Message-ID: <20010823092043.E5839@usa.net>
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 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:44 EDT