Personal tools
Share This Page
Facebook
del.icio.us
StumbleUpon

UMassWiki:Bad Behavior 2 Extended

From UMassWiki

Jump to: navigation, search

I've written a simple MediaWiki extension called Bad Behavior 2 Extended. It adds MediaWiki specific functionality to Michael Hampton's spam-blocking Bad Behavior extension. For lots more tips on blocking spam on MediaWiki, see UMassWiki:Blocking Spam In Mediawiki.

Currently the only service provided by this extension is a restricted special page which gives two lists of the blocked IPs in the database. The first brief list has the IPs sorted in descending order by number of blocked access attempts. The second detailed list has all the log entries sorted in descending order by date and contains more information including human-readable reasons for the block.

This extension is currently available in English and Spanish. Since Bad Behavior is currently not internationalized, the block reasons are all in English.

[edit] Installation

  1. Download bb2ext.php and bb2ext.i18n.php from the subversion repository. (Note: updated for MediaWiki 1.9.3 and possibly 1.10.x by Amilcar do Carmo Lucas.)
  2. Save them in your extensions/Bad-Behavior directory.
  3. Add the following to your LocalSettings.php file:
    include( 'extensions/Bad-Behavior/bb2ext.php' );

After installation, Special:BadBehavior will appear as a restricted special page (scroll down to the bottom of Special:Specialpages) to all users who have the 'block' permission.

[edit] Known Bugs

Bad Behavior 2 Extended currently causes a newline to be inserted at the top of generated source. This can conflict with some special scripts such as the Google Sitemap script I use (XML output must not start with any whitespace).

Academics
Student Life
Food
Recreation
Campus
Local
fb Was this article useful? Please spread the word and share on Facebook!
Site Sponsors
Your Ad Here
10¢/day - full time