IP sometimes comes through as 127.0.0.1 (localhost)
-
Noticing that a few review IPs come through as 127.0.0.1 and not the actual IP address, even though I am using HTTP_X_FORWARDED_FOR in wp-config with Varnish. Also in the Console in the tools menu every SPAM comment is only showing 127.0.0.1
[ip_address] => 127.0.0.1Here is what is I am using in wp-config.php to relay the actual IP
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $xffaddrs = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']); $_SERVER['REMOTE_ADDR'] = $xffaddrs[0]; }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘IP sometimes comes through as 127.0.0.1 (localhost)’ is closed to new replies.