We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Codev Web>LoggingProxiedUsers (09 Jul 2003, MichaelSparks)
Tags:
create new tag
, view all tags
Sometimes you would like to find the IP address of a user (e.g. a student of a university site that has made some damage).

Often they are hidden beyond a proxy and you find in the wiki logs only the proxy IP.

To get the user's IP from a non-anonimizer Proxy you can change a line both in TWiki.pm and Store.pm

    my $remoteAddr = $ENV{'HTTP_X_FORWARDED_FOR'} || $ENV{'REMOTE_ADDR'} || "";

-- AndreaSterbini - 24 Jun 2003

This isn't sufficient. (I don't have a need at this time to put a better fix in, but this is in case someone else needs it) The X-Forwarded-For header was introduced by squid, and at around the same time various other people implemented different things including X-Client-IP and Client-IP. FWIW, I can think of several large groups of users who would actually need the above to be looking for a Client-IP header instead.

-- MichaelSparks - 24 Jun 2003

This sounds like a feature enabled by a new flag in TWiki.cfg.

-- PeterThoeny - 24 Jun 2003

I might work on this. After taking the idea of hacking the WIKIWEBLIST I've started making local webs have customisable front ends. (Default is simple/friendly, but if a user sets preferences they can make it spartan, hostile/etc) Clearly however I don't want my UI choice changing things that for other people... (This is of course an interaction between the feature musing above and remember remote user.)

-- MichaelSparks - 09 Jul 2003

Topic revision: r4 - 09 Jul 2003 - 12:35:04 - MichaelSparks
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback