REMOTE_HOST different than apache error_log IP address

This is a discussion on REMOTE_HOST different than apache error_log IP address within the Linux Web Servers forums, part of the Web Server and Related Forums category; I was looking through my apache error log and saw an erroneous entry for one of my programs (apparently someone ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-19-2005
GS
 
Posts: n/a
Default REMOTE_HOST different than apache error_log IP address


I was looking through my apache error log and saw an erroneous entry
for
one of my programs (apparently someone was trying to hack at it). In
my
entry program I capture the REMOTE_HOST env variable. I just happened
to see what REMOTE_HOST said and what apache logged as the IP address
and they were slightly different. I was expecting them to be EXACTLY
the same?

Can someone explain? Here's the exact numbers minus the first two
fields
which are identical noted by xx and yy:

xx.yy.7.132 is what is logged by apache
xx.yy.14.197 is what REMOTE_HOST says

Thanks.

  #2 (permalink)  
Old 11-21-2005
Jeff Long
 
Posts: n/a
Default Re: REMOTE_HOST different than apache error_log IP address

GS wrote:
> I was looking through my apache error log and saw an erroneous entry
> for
> one of my programs (apparently someone was trying to hack at it). In
> my
> entry program I capture the REMOTE_HOST env variable. I just happened
> to see what REMOTE_HOST said and what apache logged as the IP address
> and they were slightly different. I was expecting them to be EXACTLY
> the same?
>
> Can someone explain? Here's the exact numbers minus the first two
> fields
> which are identical noted by xx and yy:
>
> xx.yy.7.132 is what is logged by apache
> xx.yy.14.197 is what REMOTE_HOST says


From the CGI spec:

# REMOTE_HOST

The hostname making the request. If the server does not have this
information, it should set REMOTE_ADDR and leave this unset.

# REMOTE_ADDR

The IP address of the remote host making the request.

So supposedly xx.yy.14.197 is really the DNS name that xx.yy.7.132
resolves to? But I don't think legal DNS names can start with a number
so I can't say that is correct...

Jeff Long

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0