Quantcast
Channel: WordPress.org Forums » [Wordfence Security - Firewall, Malware Scan, and Login Security] Support
Viewing all articles
Browse latest Browse all 32701

EnduringEpilepsy on "[Plugin: Wordfence Security] Blocking "fake" Googlebot"

$
0
0

I contacted PageSpeed and received this response:

Thank you for trying PageSpeed Service and for reporting the issue.

To implement X-forwarded-for on your domain we suggest you some steps to follow as below:

1.You need to edit the wp-config.php file located in the root of your site. At the top of the file (? And after the <php), add this code snippet:

// ** WordPress x-forwarded-for ip fix ** //
 if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
 $xffaddrs = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']);
 $_SERVER['REMOTE_ADDR'] = $xffaddrs[0];

}

2. Now, disable the rewriters as per the first screenshot attached.

3. Then, flush caches as per the second screenshot and then turn rewriter again.

It will take 24 to 48 hours to propagate successfully.

http://www.seeyar.fr/pss-proxy-publisher-failure/ - for screenshots

Please let us know if you face any other issues.

I just added the code to my wp-config a few minutes ago so I'm waiting to see if this helps.

I don't know what exactly x-forwarded is. ??? If it might have been an upgrade my hosting did or what but I've got my fingers crossed this helps.


Viewing all articles
Browse latest Browse all 32701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>