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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.