Bad Behaviour Plugin

badbehaviour plugin by Andreas Gohr
Test various headers and other HTTP related behavior for bad spiders and spammers

Last updated on 2008-04-06. Provides Admin, Action.
Compatible with DokuWiki 2006-11-06+.

Conflicts with linkback!

Tagged with blacklist, spam.

Bad Behavior is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer, however.

This plugin integrates the Bad Behavior toolkit into DokuWiki.

Download and Install

Please use this download to install the plugin manually or via the plugin manager:

Changes

  • 2008-04-06 – Bad Behavior lib updated to 2.0.13, switch from date to strftime for new DokuWiki release
  • 2007-12-10 – Bad Behavior lib updated to 2.0.11
  • 2007-03-07 – Bad Behavior lib updated to 2.0.10, Support Key lookup added
  • 2006-11-30 – Bad Behavior lib updated to 2.0.7
  • 2006-11-01 – skipblackhole option added, statistics admin screen added
  • 2006-10-22 – initial release

Configuration

You should set an email address in the Config Manager, for letting people contact you if they are blocked unintentionally. Or add it manually to your local.conf:

$conf['plugin']['badbehaviour']['email'] = 'you@example.com';

Bad Behaviour checks certain blacklists, normally used in email anti spam mechanisms for blacklisted IPs. This can cause innocent users to be blocked because their dynamic IP address was used by some spam bot before. If you don't want to use this check you can skip it:

$conf['plugin']['badbehaviour']['skipblackhole'] = 1;

Logging

All blocked accesses are logged to data/cache/badbehaviour.log. Each line contains the following tab separated keys:

  • Timestamp
  • IP address
  • Request method
  • Request URI
  • Server protocol
  • User Agent
  • Blocking reason key. You can lookup this key in the lib/plugins/badbehaviour/bad-behaviour/responses.inc.php file
 
plugin/badbehaviour.txt · Last modified: 2008/04/06 21:01 by andi
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate