Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to Restore visitors Original Ip in Xenforo

Administrator

Administrator
Joined
May 18, 2016
Messages
80
There are multiple ways to restore original users ip address when you are in the middle of some IP swell while using nginx reverse proxy and as well as cloudflare.

Just go to your xenforo HOME directory and navigate to this file /src/config.php and just paste this code at the bottom ( end of the file line ).

if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }

Now you can check visitors IP in your xenforo Forum page. It should work, if it is not working, please comment below i will try my best to help you for free.
 
Top Bottom