Lunacy Unleashed

Notes from the field in the War on Spam

Bad Behavior 2 Alpha 1

Make a Donation.

After many delays, technical difficulties, and much more, I’m finally pleased to announce that Bad Behavior 2.0 is taking shape and I have some downloadable code for you!

There are some caveats, though.

The current alpha code works only on WordPress 2.0. WordPress 1.x support is coming in a future alpha, as is support for MediaWiki and ExpressionEngine.

The administrative interface is not yet complete so it’s not included. This is proving to be time-consuming as each platform has a completely different method of implementing such an interface.

The temporary IP address ban code has been omitted. This will be restored in a future alpha.

At the moment, this release is intended solely for very early adopters, and those looking to have Bad Behavior 2 ports available for their own platforms concurrently with the final release. This alpha will give you a headstart in creating your own port.

In addition, it will give those of you who like living on the bleeding edge some new code to play with.

Installation notes: You need to disable Bad Behavior 1.x when installing this plugin. They will not get along at all. Unzip the file and upload the entire folder structure to your wp-content/plugins folder, so that you wind up with a wp-content/plugins/bb2 folder, with a file bad-behavior-wordpress.php and a bad-behavior folder inside there.

If you aren’t quite ready to try out this pre-release code, or you want more information, visit the Bad Behavior 2 Roadmap to see what’s planned for the final release. And if you haven’t maxed out your credit cards over the holidays, you can also contribute to further development of Bad Behavior.

Download Bad Behavior now!

December 31, 2005 - Posted by | Bad Behavior, Blog Spam, WordPress, WordPress 2.0


  1. Hi Michael,

    Got this BB2 release on my demo blog. Have 1.x disabled.

    Just wanted to know which table I need to read the blocked attempts from in order to ensure that BBStats is compatible with this release.

    Also is there some way to check if BB2 has been properly activated and working fine? 1.x used to add some comments to the page, right?

    Comment by Ajay | January 1, 2006

  2. Ajay, BB2 stores its settings (including the table name) in WP’s options. You’ll have to get it from there.

    As for whether it’s activated, change your user agent to “Bad Behavior Test” and it should block you. 🙂

    Comment by Michael Hampton | January 1, 2006

  3. Hm. Or it’ll die horribly because I used a PHP 5 function and didn’t provide a replacement. This will be fixed in the next alpha. 🙂

    Comment by Michael Hampton | January 1, 2006

  4. Ajay, here’s some sample code (for WP):

    $settings = get_settings('bad_behavior_settings');
    $table_name = $settings['log_table'];

    Comment by Michael Hampton | January 1, 2006

  5. Thanks Michael.

    If I understand better, $settings will have all the bad behavior settings right?

    I also take it that my current version wont go with BB2. Will work on an update soon. Are you planning on maintaining this struture in BB2?

    Comment by Ajay | January 1, 2006

  6. Thanks for the clarifications on #wordpress.

    Just posting SELECT COUNT(*) FROM $table_name WHERE `key` NOT LIKE '00000000'; for reference here…. in case I shamelessly forget as usual.

    Comment by Ajay | January 1, 2006

Sorry, the comment form is closed at this time.

%d bloggers like this: