DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:badbehaviour

This is an old revision of the document!


Bad Behaviour Plugin

Compatible with DokuWiki

2009-12-25, anteater

plugin Test various headers and other HTTP related behavior for bad spiders and spammers

Last updated on
2013-03-24
Provides
Admin, Action
Repository
Source
Conflicts with
linkback

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

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 Referrer, however.

This plugin integrates the Bad Behavior toolkit into DokuWiki.

Download and Install

Please use the download link given above to install the plugin manually or via the plugin manager.

Changes

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.1368028385.txt.gz · Last modified: 2013-05-08 17:53 by robmacl

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki