XF 1.5 Can't find real user IPs when using SSL with cloudflare

sdrothrock

Member
config.php contains the recommended snippets:

Code:
 38 if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
 39 {
 40     $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
 41 }
 42
 43 if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
 44 {
 45     $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
 46 }

Checking /admin.php?tools/phpinfo shows that neither of those are actually included from cloudflare.

Any ideas?
 
Back
Top Bottom