Will's blog

purpose: Will Kahn-Greene's blog of Miro, PyBlosxom, Python, GNU/Linux, random content, PyBlosxom, Miro, and other projects mixed in there ad hoc, half-baked, and with a twist of lemon

[ home | blog home | recent activity ]

Mon, 25 Apr 2011

Reducing spam

We (PCF) have a MediaWiki instance that we use for a variety of PCF projects. Since we set it up, we've been plagued with spam. The spam is always exactly the same kind of thing: an account is created, an image is uploaded, a new page is created with the image and a link to some crap url.

Over the last month, Asheesh and I fiddled with MediaWiki configuration trying to strike a good balance between maximizing hassle-free contributions and minimizing spam. This most recent round was Asheesh's idea and it seems to be successful. Thus I'm documenting it here.

We installed the ConfirmEdit extension for MediaWiki. That gives us an additional addurl permission that MediaWiki doesn't have. I set this addurl permission to require a captcha and then I wrote my EmailConfirmedNonCaptcha captcha plugin for the ConfirmEdit extension.

The gist of the EmailConfirmedNonCaptcha plugin is that it always rejects the change with a nice message if the user isn't in the emailconfirmed group. That's it.

Now we have new user accounts created, but the accounts can't do anything because they're not made by humans and they're not confirming their email addresses. Thus this particular spam vector is dead in its tracks without hassling potential contributors.

I posted a "project page" with the code for the extension at http://pculture.org/wguaraldi/emailconfirmednoncaptcha/. But that disappeared when I left PCF. I moved the project over to https://github.com/willkg/ecnc on GitHub.

4/25/2011: Asheesh suggested I add some before and after screenshots.
4/25/2011 later: Correcting a totally lame thing I did by not mentioning that I worked with Asheesh on this. It was totally his idea. I just wrote it.
1/17/2012: I moved the project to github and updated the urls in this blog entry to reflect that.

Comments:

Posted by Rob Chekaluk on Tue Jan 17 09:34:54 2012
Moved the EmailConfirmedNonCaptcha "project page" to the PCF internal wiki.


Posted by will on Tue Jan 17 10:25:50 2012
I moved the project over to github and added a project page there.

https://github.com/willkg/ecnc


Post a new comment:

Three things:

  1. New comments get placed in a "draft" status and will NOT show up on the site until I explicitly approve it. Sometimes that happens within 24 hours.
  2. I reserve the right to reject/remove inappropriate comments.
  3. Sometimes I'll reply to a comment directly in email--so make sure your email address is correct.

If you can't for some reason post a comment, send me an email: willg at bluesock dot org.

Your name:


Your e-mail address (this doesn't get displayed to anyone--sometimes I'll reply directly to you):


URL of your website (optional):


Comment:


Yes, I am a human!


pyblosxom::1.5-dev git-master

Copyright 1996 to 2012, Will Guaraldi Kahn-Greene, under the Creative Commons BY-SA 3.0 license

Creative Commons License
Will's Blog by William Kahn-Greene is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.