Category: spam

Blocking spambots with Akismet and Recaptcha

There is a special place in hell for spammers. Here is how I am trying to cope these days, with instructions for installation and configuration:

##Akismet

* As of now, this works on WordPress 2.0 and above
* [Download Akismet](http://akismet.com/download/)
* Copy to directory
* Enable in Plugins
* [Get your Akismet key by creating a WordPress.com account](http://wordpress.com/api-keys/)
* Enter the key into the Plugins/Akismet Configurator WordPress control panel

##Recaptcha
* As of now, this works on MediaWiki 1.7 and above
* [Download the Recaptcha extension](http://code.google.com/p/recaptcha/downloads/list?q=MW-Latest)
* Copy files to the /extensions/recaptcha directory
* Copy [this file](http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ConfirmEdit/ConfirmEdit.php?revision=15291&pathrev=15291) as per [this note](http://www.mediawiki.org/wiki/Extension_talk:ConfirmEdit#wfMemcKey) and overwrite the ConfirmEdit.php file in the /extensions/recaptcha directory
* [Get your captcha keys here](https://admin.recaptcha.net/recaptcha/createsite/?app=mediawiki)
* Edit the /extensions/recaptcha/Recaptcha.php file and add the public and private keys to the part that looks like:

// Set these in LocalSettings.php
$recaptcha_public_key = ”;
$recaptcha_private_key = ”;

* Edit the LocalSettings.php file at the root of the wiki, adding the following:

require_once( “$IP/extensions/recaptcha/ReCaptcha.php” );
// Sign up for these at http://recaptcha.net/api/getkey
$recaptcha_public_key = ”;
$recaptcha_private_key = ”;

* Edit the /extensions/recaptcha/ConfirmEdit.php file to modify what kinds of actions get “captcha”ed, such as account creation, new link creation, etc. Also, can filter by user roles. Very nice!

Ultimately I would like to see a MediaWiki extension for Akismet (no evidence one exists just yet), and to try out the WordPress plugin for Recaptcha. I will report back when more information becomes available.