Bad Behavior 2.1.2

February 13th, 2010 by Michael Hampton

Bad Behavior 2.1.2 has been released. This release fixes bugs and is recommended for affected users as described below.

Please note: The 2.0 series of Bad Behavior is receiving limited updates, including unblocks, bug fixes and security fixes only. Future development is taking place in the 2.1 development tree.

Who should upgrade?

Users who use the new URL whitelisting feature should upgrade to ensure that whitelisting works correctly in all circumstances.

What’s new?

New in this release (since 2.1.1):

  • A logic error in the URL whitelisting feature caused URLs to fail to match the whitelist if the if the web browser requested a URL containing a ? character. This issue has been fixed.

Download

The 2.1 development releases will not be offered through the WordPress automatic upgrade facility.

Download the 2.1.2 development release of Bad Behavior now!

Support

This release would not have been possible without the support of people like you who find Bad Behavior valuable enough to make a financial contribution to ensure its further development.

Your contributions ensure that I can continue to devote time to bringing you the features you want, as well as continuing work on making spammers’ lives hell.

If you haven’t already done so, consider setting up a recurring contribution for as little as $5 per year, or make your most generous one-time contribution for any amount.

Thank you again for supporting Bad Behavior development!


20 Responses to “Bad Behavior 2.1.2”

  1. 1

    Fellow Webmaster Says

    Does 2.1.2 work with MediaWiki 1.15.x yet?

  2. 2

    Michael Hampton Says

    What are you talking about? I wasn’t aware it was ever broken.

  3. 3

    Fellow Webmaster Says

    Wanted to verify it was compatible before upgrading and encountering issues.

  4. 4

    Michael Hampton Says

    Well, you won’t know if there are any issues until you try it. This is the development branch, after all. :)

  5. 5

    Sven Says

    A quick question regarding Bad Behavior generic. I have connected it to a database and it works by adding blocked IPs to it.

    I also use the Project Honey Pot and Spamhaus function in BB, but are these results cached for some time (like 60 minutes) or does BB look them up for every new request?

  6. 6

    Michael Hampton Says

    Sven, you’re asking the wrong person. DNS caching is handled by your local DNS server. You’ll have to ask whoever runs that.

  7. 7

    Sven Says

    Thank you for the reply Michael.

    Obvious I know too little about DNS (cache), I thought that we could chache the requests in SQL so the system was faster.

    I will have to digg into the php manual to see if I can learn more about this.

    Thanks for your patience.

  8. 8

    Stephen Says

    Glad to see the progression of the new BB. I like the separate settings.ini idea. It makes updating BB much easier. But it would be even better if the value returned by bb2_email() is also read from the ini file.

    Thanks.

  9. 9

    Tsahi Levent-Levi Says

    Hi there,
    It seems like one of your newest versions of the plugin causes Outbrain plugin to break (http://www.outbrain.com).
    Somehow, you’re blocking their crawler which doesn’t try to post any comment at all…
    Until that is fixed, I’ll need to disable your plugin. Please resolve this issue.
    Tsahi

  10. 10

    Tsahi Levent-Levi Says

    There’s another thing that I have noticed – up until a while, I received a lot more pingbacks, which didn’t come by my blog up until yesterday when I disabled Bad Behavior plugin.
    I am talking about legitimate WordPress and TypePad blogs pinging my blog with link backs from posts.
    While I have given outbrain the inputs so they can fix their code, it will be much harder to do with standard blog platforms – you should probably investigate it and fix it on your side…

  11. 11

    Michael Hampton Says

    Sorry, but you will actually need to contact me with details of any blocked requests that you believe were legitimate. I can’t do anything without knowing what exactly the problem is.

  12. 12

    Jim Craig Says

    I’ve a question concerning the log display in WordPress.

    How can I delete older log entries?

    I’ve looked all over your site, and can’t seem to find the answer to this one.

  13. 13

    Michael Hampton Says

    Log entries are deleted automatically after seven days.

  14. 14

    Demetris Says

    Hello, Michael,

    Using v2.1.2 here with the latest WP trunk (now almost at v3.0 Beta 2), and today, for the first time, Bad Behavior blocked the W3 validator with a 403 code. It happened just once, and I have not been able to reproduce it, but I thought ?’d mention it just in case.

    The validation URL is this:

    http://validator.w3.org/check?uri=http://op111.net/

    Other than that once occurence, v2.1.2 seems to work fine with WordPress 3.0.

    Thank you for your work on Bad Behavior!

  15. 15

    Meredith Lesly Says

    It would be great if you would update it to WPMU. The very quick solution is to use something like:

    $prefix = $wpmuBaseTablePrefix || $wpdb->prefix;
    return array_merge(array(‘log_table’ => $prefix . ‘bad_behavior’, ‘display_stats’ => true, ‘strict’ => false, ‘verbose’ => false, ‘logging’ => true, ‘httpbl_key’ => ”, ‘httpbl_threat’ => ’25′, ‘httpbl_maxage’ => ’30′, ‘offsite_forms’ => false), $settings);

    in bad-behavior/bad-behavior-wordpress.php. That forces it to be sitewide, which is probably generally what people want, but you’ll need some slightly fancier code to deal properly vis a vis activating vs site-wide activating.

  16. 16

    Michael Hampton Says

    Meredith, what problem are you trying to solve? You completely forgot to say what that code is for.

    Also, it would be inappropriate for me to force Bad Behavior to be active site-wide when site administrators need to make that choice for themselves.

  17. 17

    Josh Says

    I saw a forum about about someone changing the bad behavior code so that it loads in the footer and not the header to speed up site loading. Is it ok if we do this? Will it affect the functionality of the plugin?

  18. 18

    Michael Hampton Says

    Josh, I don’t see any obvious problem with putting it in the footer, so long as it actually appears. It’s in the header because many themes omit the wp_footer() call necessary to insert code in the footer, but the wp_head() call is almost never omitted from custom themes.

  19. 19

    Josh Says

    thanks Michael, here is the forum post i was referring to

    http://wordpress.org/support/topic/392183

  1. 1

    Bad Behavior / Bad Behaviour: Bad Behavior 2.0.37 and 2.1.3