• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Using CloudFlare with XF2 and IP address

BassMan

Well-known member
#1
Hi,

on XF1 when I add this if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; } to config.php it shows my real IP address, but in XF2 it shows CloudFlare's.

How can I show my real IP with CloudFlare on XF2?

Thanky you.

BassMan