[Zope] Re: IP Address

Maik Jablonski maik.jablonski@uni-bielefeld.de
Sun, 02 Feb 2003 20:15:06 +0100


Andreas Jung wrote:
> Checkout the REQUEST object. The remote IP is usually stored as 
> REMOTE_ADDR attribute.

> <simon@titanic.co.uk> wrote:
>> Can I get the IP Address of a visitor to my site?

REMOTE_ADDR is only meaningfull, if your Zope doesn't live behind Squid 
/ Apache / Pound etc.
In this cases you should check HTTP_X_FORWARDED_FOR.

Cheers, Maik