Lunacy Unleashed

Notes from the field in the War on Spam

Bad Behavior 2.0.4

Make a Donation.

Bad Behavior 2.0.4 has been released to provide small bug fixes.

New in this release (since 2.0.3):

  • A bug affecting MediaWiki and ExpressionEngine users, and possibly others, caused database errors to be thrown when a POST request was received. This has been fixed.
  • A confusing entry in the generic code, which was causing PHP warnings for people who mistakenly used it without changing it, has been altered. The section of code, which users of the generic code are expected to change, referred to a variable which did not exist, and users who failed to change the code for their particular installation received warnings.
  • A part of the housekeeping code which optimizes Bad Behavior’s log table has been rescheduled to run in only one of 1000 blocked requests. Under a heavy spam attack this was running much too frequently at its old schedule of one in 25 blocked requests, causing at least one shared hosting provider to complain.

Download Bad Behavior now!

As always, if you find Bad Behavior valuable, please consider making a financial contribution. I develop Bad Behavior in my spare time, and every little bit means I have more spare time to devote to its development.

And don’t forget to subscribe to the RSS feed or the mailing list. (They’re the same content.)

Update: Due to some errors which creeped in, I’ve repacked the 2.0.4 release. If you already downloaded it and are having strange problems, please re-download it.

July 27, 2006 - Posted by | Bad Behavior, Blog Spam, ExpressionEngine, MediaWiki, Spam, WordPress


  1. Hi,
    I have been playing with BB for about 2mths now and find it very useful in Guestbook Spam Reduction. I have found the Changes I required to run the Generic Mode were Easy to Impliment using eZ_SQL, But I Altered a couple of Things.

    1. On a couple of Servers I needed to change the logging table field from ‘key’ to ‘bbkey’ as it refused to install.

    2. Added a $settings[interval] variable to remove the hard coded interval in housekeeping.

    Thanks for the great code

    Comment by Dave Arrowsmith | July 28, 2006

  2. Bad Behavior 2.0.4

    The plug-in that stops spammer, crawlers, and scrappers gets an upgrade.

    Trackback by | July 28, 2006

  3. […] Bad Behavior 2.0.4 has been released which addresses some small bug fixes. Details and download link at Lunacy Unleashed. […]

    Pingback by Bloggers Buzz | July 28, 2006

  4. Hi! I installed bad behavior and one of the the things it blocked (right after I wrote a post) is this:

    2006-07-28 13:10:05 (the time is off by two hours)
    GET /feed/ HTTP/1.1
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    User-Agent: Java/1.5.0_03

    I’m reading something about a feed there, so couldn’t it be a legal attempt of a bot that checked my new post after I ping-ed it? Sorry for asking stupid questions. By the way, great plugin!

    Comment by stadi | July 28, 2006

  5. I’m having this problem every time the blog POST something (comments, changes in admin panel, etc):
    Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/ in /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/ on line 8

    Comment by César de Tassis Filho | July 29, 2006

  6. Another examples:
    Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/ in /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/ on line 8

    Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/ in /opt/lampp/htdocs/wp-content/plugins/ajax-comments/ajax-comments.php on line 115

    Comment by César de Tassis Filho | July 29, 2006

  7. […] Bad Behavior is at 2.0.4 now. I wouldn’t manage an internet blog without it. […]

    Pingback by Sam Devol :: Quick look at WordPress issues in July: | July 29, 2006

  8. […] The second is Michael Hampton’s recently updated Bad Behavior 2 (current version: 2.0.4). (I upgraded from 1.2 yesterday and it’s working like a charm.) Hampton works crazy-hard on this plugin and there’s nothing else like it out there. […]

    Pingback by Dead Reckoning » Archive » WordPress Announcements | July 29, 2006

  9. If you have “Display statistics in blog footer” then to validate (and look right for my theme) I had to change line 138 of bad-behavior-wordpress.php. I changed the leading to and removed the on that line.

    If that doesn’t format correctly, check my site for more details.

    Comment by Sam | July 29, 2006

  10. César, you need to read the Update to this post.

    Comment by Michael Hampton | July 29, 2006

  11. Excellent, thanks 😀

    Updated my blog and told all my blog buddies who use BB2 🙂

    Comment by TechZ | July 30, 2006

  12. Hm, sorry.
    All ok now!
    Thanks 😀

    Comment by César de Tassis Filho | July 30, 2006

  13. […] Michael Hampton released Bad Behavior v2.0.4. […]

    Pingback by | Blogroll Dive: 7/31/06 | July 31, 2006

  14. […] Via James comes news that the anti-spam plugin Bad Behaviour has been updated to version 2.0.4 – if you use this plugin (and you should if you have a php based site) then you need to get the most up-to-date version. […]

    Pingback by Bad Behaviour updated » at Tom Raftery’s I.T. views | July 31, 2006

  15. […] Updated to a newer version of wordpress and updated bad behavior today. So if you have any problems just let me know. Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages. […]

    Pingback by Advanced Technology Products Interactive » Blog Archive » Updated blog today | August 1, 2006

  16. Is Homelandstupidity out of action? I get a blank page (August 2)

    Comment by Gazzer | August 2, 2006

  17. No, it works fine. 🙂

    Comment by Michael Hampton | August 2, 2006

Sorry, the comment form is closed at this time.

%d bloggers like this: