Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bad Behavior For bbPress (HowTo)

  • I have another post in the forum, but if you are interested in using a great software package that limits spam and server attacks before they access the site, then you might be interested in Bad Behavior. I really like it because it really decreases the load on the server as well.

    While they do not have a plugin for bbPress and creating one isn’t in the cards right now, you can do it by downloading the newest Bad Behavior release and placing it as a folder in the root of your bbPress installation.

    After that, you just need to call it. I did this by adding the following to config.php after the /* Stop editing */ part.

    require_once( BBPATH . '/Bad-Behavior/bad-behavior-generic.php');

    That is the easy way without a plugin. Just thought I would share it for those that are interested.

    Trent

Viewing 4 replies - 1 through 4 (of 4 total)

  • chrishajer
    Participant

    @chrishajer

    Trent, I installed this and the install went smoothly. How can I test this or know that it’s actually working? What differences would I see? I didn’t see any testing procedure in the FAQ at http://www.homelandstupidity.us

    Thanks for sharing the procedure.

    The standalone version doesn’t have the ability to log, so it is difficult to test it without having someone do something that Bad Behavior doesn’t like! That being said, I am 99.9% sure it would be working if you are still able to bring up your forums because if you install it incorrectly, it will not let you access your pages and block everything until you get it right.

    The good thing about Bad Behavior is, install and forget about it!

    Trent


    chrishajer
    Participant

    @chrishajer

    Hi Trent, Merry Christmas. I did install it and it apparently was working since someone got blocked :yikes: I could not find any logging anywhere, and to fix it yourself with the code provided

    > Your technical support key is: 0000-zzzz-yyyy-xxxx
    >
    > You can use this key to fix this problem yourself.

    you need to log in to the ioerror/homelandstupidity site here:

    http://www.ioerror.us/ip/

    But with the IP that was blocked. So, with no logging and no way to know why this legitimate user was blocked, I disabled it. I was looking at the logging a bit (using bad-behavior-wordpress.php as an example as suggested) but I haven’t figured it out yet. I was hoping there was a config section with four lines like WP or BB, where I could enter the DB details, but it’s not there :)

    So, turned off for now. It was doing something though, I just don’t know what or why.

    I’m not sure if this worked but …

    I added in the standard Plugin header to the bad-behavior-generic.php file (see below) and then copied it and the rest of the bad-behavior folder up to bbPress. It turned on. I’m trying to sort out how to hack the wordpress plugin. I’m running the same DB for wp and bb so, in theory, this should work easily. It’s not ;) Fatal errors.

    /*
    Plugin Name: Bad Behavior
    Version: 2.0.24
    Description: Deny automated spambots access to your PHP-based Web site.
    Plugin URI: http://www.bad-behavior.ioerror.us/
    Author: Michael Hampton
    Author URI: http://www.homelandstupidity.us/
    License: GPL

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar