Can I get the IP Address of a visitor to my site? I need to use it to modify the response of my program. Simo
Checkout the REQUEST object. The remote IP is usually stored as REMOTE_ADDR attribute. -aj --On Sonntag, 2. Februar 2003 19:03 +0000 Simon Faulkner <simon@titanic.co.uk> wrote:
Can I get the IP Address of a visitor to my site?
I need to use it to modify the response of my program.
Simo
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
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
how can i make zope log the X-Forwarded-For IP instead of 127.0.0.1 (it's behind apache) thanks, jonatan On Sun, 2003-02-02 at 20:15, Maik Jablonski wrote:
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
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- jonatan <jonatanpelikan@freemail.hu>
On Monday 03 February 2003 9:51 am, jonatan wrote:
how can i make zope log the X-Forwarded-For IP instead of 127.0.0.1 (it's behind apache)
For 2.6, check out the toby-http-forwarded-for-branch in cvs This patch is in 2.7 -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson
participants (5)
-
Andreas Jung -
jonatan -
Maik Jablonski -
Simon Faulkner -
Toby Dickenson