Administrator
Administrator
- Joined
- May 18, 2016
- Messages
- 85
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
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.
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.