KittenAuth extension for MediaWiki

Posted by on

The Marilyn Manson wiki I’ve been running for a couple of years now recently suffered from massive attacks of spam. We’ve had those before, but previously we’ve always been able to stop those with plugins like ConfirmEdit. This time however, both ConfirmEdit and SimpleAntiSpam were no match for the spammers.

It was time to come up with something new, and I don’t mean making the CAPTCHA extremely hard. Because to be honest, Captcha’s Suck.

A while ago I stumbled across a website called KittenAuth, a CAPTCHA-like plugin that asks visitors to select three kittens from an array of 9 images. I immediately liked the concept, and I’m actually surprised I haven’t seen it used that much yet.

One thing I didn’t like though was the size of the block of images. The website itself doesn’t have any screenshots (strange), but you can see plenty of examples at Google images. Also, as easy as it is for us humans to identify a cat, I think the 3×3 grid makes it pretty tough to identify all the kittens at a glance. And then we’re back at why CAPTCHA’s suck: it takes several seconds to figure out the correct answer.

Anyway, my idea was to develop a KittenAuth plugin for MediaWiki that is strong enough to stop the spam flood, but easy enough for humans not to take several seconds to solve. And so I did:

KittenAuth for MediaWiki

A screenshot of the plugin with default settings

What I also did was add the option to upload custom images. Kittens are cute and all, but sometimes it’s much more fun to have your users pick something that is related to the site they’re on. Like in my case, Marilyn Manson.

KittenAuth with Marilyn Manson images

MansonAuth: pick the photo of Marilyn Manson

Apart from being able to customize the images there’s also a range of options for which visitors actually see the KittenAuth, when it is triggered, and what IP’s and URL’s are disregarded. These are mostly taken from ConfirmEdit, so due credit goes to it’s developers.

Anyway, if you want to give it a try you can download KittenAuth for Mediawiki (.zip) and visit the KittenAuth MediaWiki extension page for more information and the installation instructions.

Feel free to leave a comment on the plugin’s talk page, here on this blog or on Twitter (@Litso_) if you have any questions or remarks. If you’re a PHP developer and you think you can improve the plugin or help out with the To-Do items, feel free to edit the code and send me an update!

 

 

3 Responses to “KittenAuth extension for MediaWiki”

  1. Diana Ramirez said on

    Hi! I’d like to know iof its possible to insert captcha at the end of the edit form, urgently! Thanks!

  2. Stephan said on

    Hey Diana,

    Sorry, I looked through the code but it looks like there’s no option in MediaWiki to put it after the edit form..

    Not sure if you use jQuery on your mediawiki (I think it comes with MW by default, but you can check by viewing the source of a wiki page and looking for the word “jquery”. If it’s there, I can give you a little script that will put it below the edit form after a page is loaded :)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>