• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Add support for proxies

Deebs

Well-known member
#1
XenForo does not support the logging of remote IP addresses of users accessing the system through any form of proxy. Inside /library/xenforo/controller.php are a few areas where the ZendFramework function getclientip is called. Unfortunately all calls to this function pass in FALSE which is telling ZF to not check for certain headers to see if the connecting IP has been proxied.

Please override this function and allow within the ACP the ability to specify our own header to check for proxied IP addresses. Why our own? It is very easy to spoof but in my Varnish cache I can set any header I want to the real IP, tell XF the name of it, record the real IP and strip it out of any returned headers to the connecting IP.

For the majority of users simply allowing an input box and a checkbox (header to check for, check for headers) will suffice.

For now I shall have to modify the ZF source file to accomodate.

Btw, this will also fix the issues in this thread:

http://xenforo.com/community/threads/remote_addr.13180/
 

Deebs

Well-known member
#2
Having been looking at the source it seems that XenForo is not proxy friendly when it comes to recording IP addresses. There are multiple instances where the IP address is being set on the value of SERVER['REMOTE_ADDR'] which, when accessing through a proxy, is set to the address of the proxy.