-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Test compatibility with "Blackhole for Bad Bots" #284
Comments
If you configure Cachify to generate static HTML files that are served by your webserver or some caching CDN directly, I don't see any elegant way to achieve this from the plugin's perspective. With cached content served by the plugin itself, this should be possible. Currently, Cachify hooks into the template_redirect which is pretty early. We should
For the majority of use cases the earlier the better, as it reduces latency and computational overhead, so if we need to do things later for compatibility, I'd prefer a switch for that. |
The most recent version is 3.6: https://plugins.trac.wordpress.org/browser/blackhole-bad-bots/tags/3.6 |
In the linked page I saw this explanation:
Maybe we could trigger Or we could look at those other caching plugins mentioned and how they achieve compatibility. |
After reading some more, those plugins either seem to have a late init option or the full page caching can be disabled at all. Two plugins can be "fixed" with adding a MU plugin with only this code: function blackhole_verify_nonce($verify) { return true; }
add_filter('blackhole_verify_nonce', 'blackhole_verify_nonce'); This looks like a hard coded |
Jeff Starr has this plugin: https://wordpress.org/plugins/blackhole-bad-bots/
It adds a (hidden) link which is also blocked via robots.txt. If a bot is trying to crawl this page it knows this is a bad bot and blocks the IP address.
The problem is, that it is not compatible with every caching plugin, because it needs to fire some hooks which are not fired if only the cached HTML is shown.
See https://wordpress.org/plugins/blackhole-bad-bots/#installation for the problem description
and https://plugin-planet.com/blackhole-pro-cache-plugins/ for the list of compatible plugins.
Let's test it and hopefully we can make Cachify compatible.
The text was updated successfully, but these errors were encountered: