Using CloudFlare with XF2 and IP address

BassMan

Well-known member
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
 
Top