nsmeaton Posted February 2, 2007 Share Posted February 2, 2007 Hi all, Does apache automatically log the client IP address if the client goes through a proxy that sends an X-Forwarded-For header? If i set up a proxy for people, and do NOT want it to be anonymous, will my proxy ip show up in other servers http-access logs? If so, is there any indication of what % of webservers deal with X-Forwarded-For logging (is it common practice to do so for larger companies)? Many thanks in advance, - nick Link to comment https://forums.phpfreaks.com/topic/36752-x-forwarded-for-and-default-apache-logging/ Share on other sites More sharing options...
steviewdr Posted February 2, 2007 Share Posted February 2, 2007 Does apache automatically log the client IP address if the client goes through a proxy that sends an X-Forwarded-For header? No - apache will only log the first bounce of client ip. I.e. apache will only log the ip of the proxy been used to access its pages. If i set up a proxy for people, and do NOT want it to be anonymous, will my proxy ip show up in other servers http-access logs? Yes - your ip will show up in other servers http-access logs. If so, is there any indication of what % of webservers deal with X-Forwarded-For logging (is it common practice to do so for larger companies)? By default - apache does not do a lookup on x-forwarded-for. It just logs the ip of whats accessing it - i.e. proxy. Yes - some companies - do log by x-forwarded-for. Some proxies - do NOT send out the x-forwarded-for ip. go to: http://whatsmyip.org/more/ -steve Link to comment https://forums.phpfreaks.com/topic/36752-x-forwarded-for-and-default-apache-logging/#findComment-175379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.