Show proper IP when behind reverse-proxy

  • Thread starter Thread starter Rasmus Vind
  • Start date Start date

Rasmus Vind

Guest
Member
Many people use reverse-proxies these days. Common types are Cloudflare, Varnish, Nginx. Reverse-proxies work just fine with XenForo, however, when looking at the IP log, you will find that ALL registered IPs are by your proxy and not your user.
Because of this, I suggest that we add an option to the Options page allowing you to look at the 'X-Forwarded-For' header stead of REMOTE_ADDR.

Basically, this would add a bit more logic to XenForo_Helper_Ip where it looks at...

Read more

Continue reading...
 
Top