How do I restore original visitor IP for XenForo on Cloudflare

option 1:

Login to your Xenforo Root folder

  1. open library/config.php
  2. At the end, add:
    if (isset($_SERVER[‘HTTP_CF_CONNECTING_IP’])) { $_SERVER[‘REMOTE_ADDR’] = $_SERVER[‘HTTP_CF_CONNECTING_IP’]; }
  3. upload and overwrite

Another option 2:

A Xenforo user has created a plugin that is available here. Download and upload plugin enable it.

 

Like
Like Love Haha Wow Sad Angry