Your ‘How does Wordfence get IPs’ setting is misconfigured.
-
Previously I was advised to use X-Forwarded-For HTTP and the following code in my wp-config.php file
if (isset($_SERVER[“HTTP_X_FORWARDED_FOR”])) { $_SERVER[‘REMOTE_ADDR’] = $_SERVER[“HTTP_X_FORWARDED_FOR”]; }
But after doing the recent Wordfence update I’m receiving the following error when I log into WordPress.
Your ‘How does Wordfence get IPs’ setting is misconfigured. This site is currently using the X-Forwarded-For HTTP header, which should only be used when the site is behind a front-end proxy that outputs this header. This site appears to be behind a front-end proxy, so using the X-Real-IP HTTP header will resolve to the correct IPs. Click here to use the recommended setting or visit the options page to manually update it.
What should I do?
- The topic ‘Your ‘How does Wordfence get IPs’ setting is misconfigured.’ is closed to new replies.