Bad Behavior 2.0.4
July 27th, 2006 by Michael Hampton
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.
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.

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
Jul 28th, 2006 at 1:03 am
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!
Jul 28th, 2006 at 1:28 pm
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
Jul 29th, 2006 at 5:10 pm
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
Jul 29th, 2006 at 5:11 pm
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
toand removed theon that line.If that doesn’t format correctly, check my site for more details.
Jul 29th, 2006 at 7:40 pm
Michael Hampton Says
César, you need to read the Update to this post.
Jul 29th, 2006 at 10:35 pm
TechZ Says
Excellent, thanks
Updated my blog and told all my blog buddies who use BB2
Jul 30th, 2006 at 1:57 pm
César de Tassis Filho Says
Hm, sorry.
All ok now!
Thanks
Jul 30th, 2006 at 2:16 pm
Gazzer Says
Is Homelandstupidity out of action? I get a blank page (August 2)
Aug 2nd, 2006 at 8:33 am
Michael Hampton Says
No, it works fine.
Aug 2nd, 2006 at 12:09 pm