Home » Wordpress SEO & Plugins

How to make Bad Behavior work with WordPress Advanced Cache 2 and WP Super Cache?

 May 26, 2008 One Comment

Bad Behavior is now compatible with WordPress Advanced Cache 2 and WP Super Cache plugins.Bad Behavior is a wordpress plugin that validates every request to pages on your wordpress blog/site.

Bad behaviour is a great tool for PHP based websites like wordpress.It not only protects the wordpress or other PHP based sites from spammy comments and trackbacks but bad behavior also protects the wordpress or other PHP based sites from spambots and other automated robots that will still be able to crawl those sites.

How to enable Bad Behavior to protect cached pages?

To enable Bad Behavior to protect cached pages, you will need to make the following changes to Advanced Cache / Super Cache wordpress plugins:

  • Logon to the server where your wordpress blog/site is hosted
  • Open wp-content/plugins/wp-cache/wp-cache-phase1.php
  • Find the following two lines (at around line 34 WordPress Advanced Cache 2 plugin and line 56 in WP Super Cache plugin):
if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )
return;
  • Immediately after the above two lines, insert the following line:
require_once( ABSPATH . ‘wp-content/plugins/Bad-Behavior/bad-behavior-generic.php’);

That is all folks.Enjoy the protection of Bad Behavior for your cached wordpress pages.

Filed under: Wordpress SEO & Plugins

One Response to “How to make Bad Behavior work with WordPress Advanced Cache 2 and WP Super Cache?”

  1. Protect your website from spambots with Bad behaviour | Wordpress & Plugins said:

    [...] You can also make Bad Behavior to protect your wordpress pages cached with WordPress Advanced Cache 2 and WP Super Cac…. [...]

Leave a Reply