Archive for June, 2007

Efficient MediaWiki Hack to stop spam 0

Here is a quick PHP hack to make sure that standard spam bots won’t work on your wiki (just added it to mine).

in EditPage.php

After:


{$editsummary}

Add:

Before:

# Check for spam

Add:

if (strtolower($_REQUEST['chococheck']) != 'chocoflop')
{
$this->spamPage ('Did you type the name of the app? If no, hit back in your browser and type it!');
return;
}

Of course you should chose a question of your own :-)