Jump to content

X-Forwarded-For and default apache logging


nsmeaton

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.