Bad Behavior 2 is Copyright © 2005-2008 Michael Hampton. All rights reserved.
Bad Behavior 2 Plugin Upgrade by Mark R. Evans
Date: March 26, 2008
Bad Behavior complements other link spam solutions by acting as a gatekeeper, preventing spammers from ever delivering their junk, and in many cases, from ever reading your site in the first place. This keeps your site’s load down, makes your site logs cleaner, and can help prevent denial of service conditions caused by spammers. (quoted from <http://www.bad-behavior.ioerror.us/>)
For upgrading instructions, see below.
With one exception (see step 5), this plugin installs like any other Geeklog plugin:
/path/to/geeklog/public_html/bad_behavior2
/path/to/geeklog/public_html/admin/plugins/bad_behavior2
/path/to/geeklog/plugins/bad_behavior2/templates/
/path/to/geeklog/plugins/bad_behavior2
IMPORTANT! EXTRA STEP FOR THIS PLUGIN
require_once( $_CONF['path_system'] . 'lib-database.php' );
AFTER that line, add:
if (DB_count($_TABLES['plugins'], array("pi_name","pi_enabled"),array("bad_behavior2","1")) > 0) {
require_once($_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php');
}
* Log in as the Admin, select “Plugins” from the Admin block and click on “Install” for the bad_behavior2 plugin
If you need help with installing a Geeklog plugin, start here: <http://www.geeklog.net/forum/viewtopic.php?showtopic=39765>
If you are upgrading from v1.2.4-1 of Bad Behavior or earlier, please follow these instructions. If you are upgrading from an earlier version of Bad Behavior 2, skip this section.
If you are upgrading from v1.2.4-1 you must first uninstall the existing plugin before you install v2.0.10.
Upgrading is as simple as replacing the files on your server with the new files in the v2.0.11 archive. You can then go to the Geeklog Plugin Manager and choose the Update button for the Bad Behavior2 plugin.
Options:
There is one option you can configure for Bad Behavior 2, it is located in the public_html/bad_behavior2/bad-behavior-geeklog.php.
Near the top you will see:
$bb2_settings_defaults = array( 'log_table' => $_DB_table_prefix . 'bad_behavior2', 'display_stats' => true, 'strict' => false, 'verbose' => false );
Only change the value for strict
| strict: | Enables strict mode blocking. When turned on, certain types of spam will be blocked, but legitimate corporate and government users may also be blocked. This is off by default. |
This version of Bad Behavior does not include the Spam-X module. Bad Behavior2 does not query the database to see if an IP address has already been banned. The Spam-X module in the previous version would write the IP address to the Bad Behavior database so it would continue to be banned. Since this function is no longer present in Bad Behavior2, the Spam-X module has been removed.
Users in the Bad Behavior2 Admin group can search the Bad Behavior2 logs. Simply go to Geeklog's search page and enter your search terms. Select “Bad Behavior2” from the “Type” drop-down menu if you only want to perform a search on the Bad Behavior2 logs.
The search function will search for IP addresses and it also searches through the entire HTTP request that the offender used to access the site.
Bad Behavior2 also displays a section in your site's statistics. In addition to the total number of blocked requests, it also displays a list of the most common misbehaviors. These statistics are only visible to members of the 'Bad Behavior2 Admin' group.
The Bad Behavior 2 plugin provides a 'Block' function so you can include a block on your site. The function name is phpblock_bad_behavior2_stats().
v2.0.13
Bad Behavior2 2.0.10 upgrades the core Bad Behavior code to v2.0.10. This version also names everything Bad Behavior2 to avoid conflicts with the original v1.2.4-1 plugin by Dirk Haun.
Bad Behavior was written by Michael Hampton. Consider a small donation to Michael if you find this plugin useful.
This Geeklog plugin provides a wrapper around Michael's plugin and adds a few Geeklog-specific extras, e.g. the ability to view the blocked requests and to search through the list of blocked requests.
The original Geeklog plugin was developed by Dirk Haun.
The Plugin upgrade to Bad Behavior2 v2.0.13 was done by Mark R. Evans using most of the work Dirk had in the original plugin.
Bad Behavior is © 2005-2008 by Michael Hampton and released under the GPL The Geeklog plugin is © 2005-2008 Dirk Haun and also released under the GPL Upgrade to Bad Behavior v2.0.10-2.0.13 by Mark Evans - GPL'ed of couse…
Please see the included file COPYING (in public_html) for license details.