httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] How to retrieve IP address of incoming packets in text file using httpd source code
Date Wed, 26 Dec 2012 20:22:58 GMT

On 26 Dec 2012, at 19:31, John Iliffe wrote:

> Maybe I'm missing something following this discussion, but doesn't the 
> following PHP command fetch the information you need?  If so, I'm sure the 
> same results can be obtained in other scripting languages.  
> 
> $_SERVER['REMOTE_ADDR'];

You may want to update that.

Since 2.4, apache makes the distinction between the the two different
REMOTE_ADDR candidates: the peer making the TCP connection,
and the client making the HTTP request.  In other words, the nearest
proxy and the end-user.  The latter is of course very easy to spoof,
but is nevertheless the one most applications want.

To the OP, if you can't figure it out from what you've already been told,
hire a techie.  You probably just want a competent sysop.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message