Bad Behavior 2.0.4

July 27th, 2006 by Michael Hampton

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.


13 Responses to “Bad Behavior 2.0.4”

  1. 1

    Dave Arrowsmith Says

    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

  2. 2

    stadi Says

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

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

    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!

  3. 3

    César de Tassis Filho Says

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

  4. 4

    César de Tassis Filho Says

    Another examples:
    NULL
    Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/post.inc.php:54) in /opt/lampp/htdocs/wp-content/plugins/Bad-Behavior/bad-behavior/screener.inc.php 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/post.inc.php:54) in /opt/lampp/htdocs/wp-content/plugins/ajax-comments/ajax-comments.php on line 115

  5. 5

    Sam Says

    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.

  6. 6

    Michael Hampton Says

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

  7. 7

    TechZ Says

    Excellent, thanks :D

    Updated my blog and told all my blog buddies who use BB2 :)

  8. 8

    César de Tassis Filho Says

    Hm, sorry.
    All ok now!
    Thanks :D

  9. 9

    Gazzer Says

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

  10. 10

    Michael Hampton Says

    No, it works fine. :)

  1. 1

    Sam Devol :: Quick look at WordPress issues in July:

  2. 2

    MacManX.com | Blogroll Dive: 7/31/06

  3. 3

    Bad Behaviour updated » at Tom Raftery’s I.T. views