Lately I just ran into heavy spamming among all my MediaWiki’s wikis.
It first began with plain anonymous spamming (I wanted to leave anonymous editing available), then I forced account creation, then spammers were automating new account registrations before updating existing pages and creating new ones with spam.
So I decided to do things properly and install the reCaptcha plugin for MediaWiki.
Apparently the problems you may encounter while doing so highly depends on your PHP and MediaWiki versions.
Here are mine:
- PHP: 5.3.2
- MediaWiki: 1.14.0 and 1.15.1
- Create a set of public/private keys using Google’s reCaptcha service.
- Follow instructions on Google’s help to install reCaptcha’s MediaWiki plugin. At the time of this writing, I used version 1.7.
- An additional step is needed to allow editing pages. Modify file
extensions/recaptcha/ReCaptcha.php
, by replacing the following linefunction confirmEdit( &$editPage, $newtext, $section ) {
with this:
function confirmEdit( $editPage, $newtext, $section ) {
(Just remove the
&
character). This issue is covered in this ticket.
And here you go: up and running MediaWiki with reCaptcha. You can check one of my installations here.