Welcome to Inkbunny...
Allowed ratings
To view member-only content, create an account. ( Hide )
SnowDusk
« older newer »
Hatii
Hatii's Gallery (102)

BanHammer Monodramon

Happy Valentines '11
set default image size: small | medium | wide
by Hatii
Digimon Adventure Print
It's alright... Whispered
So Wikimon's been absolutely flooded with spambots... so lately I've spent more time deleting advertisements and banhammering accounts en masse, which led to me wishing I REALLY had a ban hammer. One that shot bullets.

Keywords
digimon 26,347, purple 9,709, hammer 1,221, monodramon 125
Details
Type: Picture/Pinup
Published: 13 years, 9 months ago
Rating: General

MD5 Hash for Page 1... Show Find Identical Posts [?]
Stats
102 views
4 favorites
4 comments

BBCode Tags Show [?]
 
GreenReaper
13 years, 9 months ago
You doesn't seem to have much in the way of protection. Consider these extensions?
*SimpleAntiSpam - trivial, often works well
*ForcePreview - good luck saving if they don't know to preview first
*SpamBlacklist - set it up to use Wikimedia's lists and you catch a lot
*AntiBot - an extensible framework, comes with one useful thing. Make sure you copy the plugin into the active directory else it won't do anything. Our modification of the genericFormEncoding.php:
$wgHooks['EditFilterMerged'][] = 'AntiBot_GenericFormEncoding::onEditFilterMerged';
class AntiBot_GenericFormEncoding {
        function onEditFilterMerged( $editPage, $text, &$hookError ) {
                if ( !function_exists( 'apache_request_headers' ) ) {
                        return true;
                }
                $headers = apache_request_headers();
                if ( isset( $headers['Content-Type'] )
                        && $headers['Content-Type'] == 'application/x-www-form-urlencoded' )
                {
                        global $wgUser;
                        if ( !$wgUser->isAllowed( 'noratelimit' ) && !$wgUser->isAllowed( 'bot' )) {
                                if ( AntiBot::trigger(__CLASS__) == 'fail' ) {
                                        return false;
                                }
                        }
                }
                return true;
        }
}
GreenReaper
13 years, 9 months ago
*AbuseFilter - configurable blocks against particular behaviours. A couple of filters we use on WikiFur (use import on Special:AbuseFilter to apply):
{"row":{"af_id":"1","af_pattern":"!(\"autoconfirmed\" in user_groups) &\r\nset_var('lc_added_lines',lcase(added_lines)) &\r\nset_var('lc_removed_lines',lcase(removed_lines)) &\r\n(\r\n  count(\"http:\/\/\", lc_added_lines) > count(\"http:\/\/\", lc_removed_lines) + 7 &\r\n  !count(\"<ref\", lc_added_lines) > count(\"<ref\", lc_removed_lines)\r\n)","af_user":"149","af_user_text":"GreenReaper","af_timestamp":"20091020073009","af_enabled":"1","af_comments":"Warn non-autoconfirmed users adding more than seven external links to an article at once. Those adding references are exempted from the number of external links restriction.","af_public_comments":"Link spamming by anonymous or recently-registered users","af_hidden":"0","af_hit_count":"5792","af_throttled":"0","af_deleted":"0","af_actions":"warn,tag","af_global":"0"},"actions":{"tag":{"action":"tag","parameters":["linkspam"]},"warn":{"action":"warn","parameters":["abusefilter-warning"]}}}

{"row":{"af_id":"2","af_pattern":"set_var('lc_added_lines',lcase(added_lines)) &\r\nset_var('lc_removed_lines',lcase(removed_lines)) & (\r\ncount(\"[link=\", lc_added_lines) > count(\"[link=\", lc_removed_lines) |\r\ncount(\"[url=\", lc_added_lines) > count(\"[url=\", lc_removed_lines) |\r\ncount(\"[img\", lc_added_lines) > count(\"[img\", lc_removed_lines) |\r\ncount(\"<a href=\", lc_added_lines) > count(\"<a href=\", lc_removed_lines) |\r\ncount(\"<img\", lc_added_lines) > count(\"<img\", lc_removed_lines) )","af_user":"149","af_user_text":"GreenReaper","af_timestamp":"20091020072936","af_enabled":"1","af_comments":"Prevents link, url, img and href misuse (and spamming).","af_public_comments":"Invalid linking or image syntax","af_hidden":"0","af_hit_count":"8062","af_throttled":"0","af_deleted":"0","af_actions":"warn,tag","af_global":"0"},"actions":{"tag":{"action":"tag","parameters":["wronglinksyntax"]},"warn":{"action":"warn","parameters":["abusefilter-wronglinksyntax"]}}}

We use them all on WikiFur. While some spam still gets through, it's rarely a problem. Defense in depth!
Hatii
13 years, 9 months ago
Oooh, thanks so much! I'll show these to our other Admin, he does all the behind-the-scenes tweaking!

So far we mostly just use having to have a valid e-mail address as far as I know... but it's gotten crazy this week!
RuscoIstar
13 years, 9 months ago
Smashing those spambots with the fury of a thousand gods! >:3
New Comment:
Move reply box to top
Log in or create an account to comment.