Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Log actual client IPs

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  GUI Configuration Tool  
Author Message
user2391

External


Since: Jul 24, 2003
Posts: 6



(Msg. 1) Posted: Thu Jul 24, 2003 12:05 pm
Post subject: Log actual client IPs
Archived from groups: alt>apache>configuration (more info?)

I'm looking for a convenient way to log actual client IPs instead of ISP
proxies' in my access_log files but I can't manage to find documentation.
I'm using Apache 1.3.23 under Redhat Linux.

I've read I can use a simple scripting language in httpd.conf so I can
create my own variable (let's say "real_ip") but I don't know how to
populate it. I don't even know whether there's any standard proxies follow
to name the HTTP header that contains client IPs. I know some proxies use
X-Forwarded-For (which, by the way, can even be a comma separated list!) but
other proxies seem to use Client-IP... A mess indeed.

I figure out it must be a common issue so there must be good articles about
it somewhere... I'd really appreciate any guidance. Thank you in advance,

 >> Stay informed about: Log actual client IPs 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Jul 24, 2003 12:05 pm
Post subject: Re: Log actual client IPs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Alvaro G. Vicario <alvaro.QUITAR_REMOVE RemoveThis @telecomputeronline.net> wrote:
 > I'm looking for a convenient way to log actual client IPs instead of ISP
 > proxies'

The point in having a proxy is that your Ip doesn't get past it. If you
really want to do such thing use a client-side scripting or programs
(ActiveX, Java Applets) that collect this kind of information and send
them back to you. Be aware that no system works everytime, especially
if the client is paranoid and does not allow this kind of things to work.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Log actual client IPs 
Back to top
Login to vote
user2391

External


Since: Jul 24, 2003
Posts: 6



(Msg. 3) Posted: Thu Jul 24, 2003 12:52 pm
Post subject: Re: Log actual client IPs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> escribió en el mensaje
news:bfo1go$gnkgn$9@ID-18487.news.uni-berlin.de...
 > The point in having a proxy is that your Ip doesn't get past it.

I believe that's not always true. Some (most? least? all?) proxies create a
header that contains the originating IP of the request. I even wrote a PHP
function that gets the client IP if the proxy uses X-Forwarded-For for that
purpose. So given that it's possible in certain cases, my log records would
be more useful if they could containt client IP when found, regular IP when
other not found.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Log actual client IPs 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]