From: Frank B. <fb...@fo...> - 2003-05-01 22:20:40
|
Hallo, I need to get the remote IP of a website visitor. The problem is: We use Squid as an accelerating proxy in front of Apache. So Apache everytime sees the same IP: "127.0.0.1" Squid is configured to attach a HTTP-header to the request: "X-Forwared-For: real.ip.number". Can I get at this header using Page.request() somehow and if yes, how? Thank you. ciao -- Frank Barknecht _ ______footils.org__ |
From: Luke O. <lu...@me...> - 2003-05-01 22:51:06
|
All Apache/Squid headers come in as Environment variables. So: self.request().environ().get('X-Forwarded-For', None) is one way. - Luke Quoting Frank Barknecht <fb...@fo...>: > Hallo, > > I need to get the remote IP of a website visitor. The problem is: > We > use Squid as an accelerating proxy in front of Apache. So Apache > everytime sees the same IP: "127.0.0.1" > > Squid is configured to attach a HTTP-header to the request: > "X-Forwared-For: real.ip.number". > > Can I get at this header using Page.request() somehow and if yes, > how? > > Thank you. > > ciao > -- > Frank Barknecht _ > ______footils.org__ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss > -- i find your contempt for naked feet curious. |
From: Tavis R. <ta...@re...> - 2003-05-02 00:57:07
|
You should have a look at mod_extract_forwarded http://web.systhug.com/mod_extract_forwarded/ On Thursday 01 May 2003 15:19, Frank Barknecht wrote: > Hallo, > > I need to get the remote IP of a website visitor. The problem is: We > use Squid as an accelerating proxy in front of Apache. So Apache > everytime sees the same IP: "127.0.0.1" > > Squid is configured to attach a HTTP-header to the request: > "X-Forwared-For: real.ip.number". > > Can I get at this header using Page.request() somehow and if yes, how? > > Thank you. > > ciao |
From: Tripp L. <tri...@pe...> - 2003-05-02 02:44:44
|
On Thu, 1 May 2003, Tavis Rudd wrote: > You should have a look at mod_extract_forwarded > http://web.systhug.com/mod_extract_forwarded/ To save others the trouble of backing up and following links forward[1]: http://web.warhound.org/mod_extract_forwarded/ [1] However, it seems that's still a useful exercise, as there are some interesting little goodies at the systhug site... |