How do I restore original visitor IP with XenForo?

A Xenforo user has created a plugin for Cloudflare that is available here.

Another option:

  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

 

 

Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk