Archive

Archive for March 14th, 2006

Mediawiki spam

March 14th, 2006 7 comments

I run several sites off Mediawiki, and the spam problem has been getting progressively worse recently.

Making the wiki ‘registered users only can edit’ helps a bit, but most of the spambots can get around that now. In fact most seem to get around the ‘easy rollback’ of recently registered users changes by creating their spamming accounts quite some time before actually using them to spam.

Most of the spam I get is of a particularly useless kind. It’s wrapped in a div set with a style of “overflow:auto;height:1px;”, which makes it invisible on the page. However, as most recent releases of MediaWiki also default to adding a “nofollow” to external links, this means that the spam links get no googlejuice either.

Although useless to the spammer, it’s highly irritating to wiki admins. However, there is a particularly simple fix.

In your LocalSettings.php, just add one line:

$wgSpamRegex="/overflow\s*:\s*auto/i";

Now any attempt to include text that matches in an edit causes the edit to fail.

I’m sure this is documented somewhere, but I only came across it on one of the mailing lists. So I’m offering it out here in the hope that some other plagued mediawiki admin can cut back their admin burden too.

Tags:

Sharmanka Kinetic Art

March 14th, 2006 2 comments

Tower of BabelIf anyone is visiting Glasgow at any time soon, I would strongly recommend a visit to Sharmanka. Their website is very 1997, and doesn’t really do them justice, but this is a truly amazing collection of pieces created from old sewing machines, bicycles, and other scrap, with hundreds of little carved figures pulling and pushing and twisting and turning.

There are scheduled performances on Thursdays and Sundays, but apparently they’ll open it pretty much any time if you ring them.

Tags: