CommunityRecent blog postsAnswers Wikis on WikiaDoctor Who AnswersWikianswersFallout AnswersFinal Fantasy AnswersHalo AnswersNaruto AnswersFinance Answers
Answers Central Wiki
All Contributors
Avatar
Avatar
Avatar

Abuse filter - Resolved

Since the abuse filter does not work on answers sites and Wikia won't fix it, we made our own abuse filter.

Here's the code: You just need to change var badwords.

/** ABUSE FILTER V2 **/
;(function ($, document) {
    'use strict';
    $(function () {
        if (!$('#article_textarea')) {
            return;
        }
        document.getElementsByTagName('form')[1].onsubmit = function onsubmit(event) {
            var badwords = /\barse\b|\barsehole\b|\bass\b|\bassbag\b|\bassbandit\b|\bassbanger\b|\bassbite\b|\bassclown\b|\basscock\b|\basscracker\b|\basses\b|\bassface\b|\bassfuck\b|\bassfucker\b|\bassgoblin\b|\basshat\b|\basshead\b|\basshole\b|\basshopper\b|\bassjacker\b|\basslick\b|\basslicker\b|\bassmunch\b|\bassmuncher\b|\basspirate\b|\bassshole\b|\basswipe\b|\bbampot\b|\bbastard\b|\bbeaner\b|\bbitch\b|\bbitchass\b|\bbitchtits\b|\bbitchy\b|\bblow job\b|\bblowjob\b|\bboner\b|\bbrotherfucker\b|\bbullshit\b|\bbumblefuck\b|\bbutt plug\b|\bbutt-pirate\b|\bbuttfucka\b|\bbuttfucker\b|\bcamel toe\b|\bcarpetmuncher\b|\bchinc\b|\bchoad\b|\bchode\b|\bclitface\b|\bclitfuck\b|\bcockbite\b|\bcockface\b|\bcockfucker\b|\bcockknoker\b|\bcockmaster\b|\bcockmongler\b|\bcockmongruel\b|\bcockmonkey\b|\bcockmuncher\b|\bcockshit\b|\bcocksmith\b|\bcocksmoker\b|\bcocksucker\b|\bcoochie\b|\bcoochy\b|\bcoon\b|\bcooter\b|\bcum\b|\bcumbubble\b|\bcumjockey\b|\bcumtart\b|\bcunt\b|\bcunthole\b|\bdeggo\b|\bdickbag\b|\bdickbeaters\b|\bdickface\b|\bdickfuck\b|\bdickhead\b|\bdickhole\b|\bdickmonger\b|\bdickweasel\b|\bdickweed\b|\bdickwod\b|\bdipshit\b|\bdookie\b|\bdouche-fag\b|\bdouchebag\b|\bdouchewaffle\b|\bdumass\b|\bdumb ass\b|\bdumbass\b|\bdumbfuck(|er)(|s)\b|\bdumbshit\b|\bdumshit\b|\bfagbag\b|\bfagfucker\b|\bfaggit\b|\bfaggot(|s)\b|\bfagtard\b|\bfatass\b|\bfellatio\b|\bfeltch\b|\bflamer\b|\bfuck\b|\bfuckass\b|\bfuckbrain\b|\bfuckbutt\b|\bfucked\b|\bfucker\b|\bfuckface\b|\bfuckhead\b|\bfuckhole\b|\bfuckin\b|\bfucking\b|\bfucknut\b|\bfucks\b|\bfuckstick\b|\bfucktard\b|\bfuckup\b|\bfuckwad\b|\bfuckwit\b|\bfuckwitt\b|\bfudgepacker\b|\bgaybob\b|\bgaydo\b|\bgayfuck\b|\bgayfuckist\b|\bgaytard\b|\bgaywad\b|\bgoddamn\b|\bgoddamnit\b|\bgooch\b|\bgook\b|\bgringo\b|\bguido\b|\bhandjob\b|\bheeb\b|\bhomo\b|\bhomodumbshit\b|\bhonkey\b|\bhumping\b|\bjackass\b|\bjap\b|\bjerk off\b|\bjigaboo\b|\bjizz\b|\bjungle bunny\b|\bjunglebunny\b|\bkike\b|\bkooch\b|\bkootch\b|\bkyke\b|\blesbo\b|\blezzie\b|\bmcfagget\b|\bminge\b|\bmothafucka\b|\bmotherfucker\b|\bmotherfucking\b|\bmuff\b|\bmuffdiver\b|\bmunging\b|\bnegro\b|\bnigga\b|\bnigger\b|\bniglet\b|\bnut sack\b|\bnutsack\b|\bpaki\b|\bpanooch\b|\bpecker\b|\bpeckerhead\b|\bpenisfucker\b|\bpiss\b|\bpoon\b|\bpoonani\b|\bpoonany\b|\bporch monkey\b|\bporchmonkey\b|\bpunanny\b|\bpunta\b|\bpussylicking\b|\bputo\b|\bqueef\b|\bqueer\b|\bqueerbait\b|\bqueerhole\b|\brenob\b|\brimjob\b|\bruski\b|\bsand nigger\b|\bsandnigger\b|\bschlong\b|\bscrote\b|\bshit\b|\bshitbagger\b|\bshitcunt\b|\bshitdick\b|\bshitface\b|\bshitfaced\b|\bshithead\b|\bshithole\b|\bshithouse\b|\bshitspitter\b|\bshitstain\b|\bshitter\b|\bshittiest\b|\bshitting\b|\bshitty\b|\bshiz\b|\bshiznit\b|\bskank\b|\bskeet\b|\bskullfuck\b|\bslut\b|\bslutbag\b|\bsnatch\b|\bspic\b|\bspick\b|\bsplooge\b|(lick|suck)(| )(your|my)( | own)(dick|butt|ass|cock|penis|pussy|cunt|clit|nut)|\btard\b|\bthundercunt\b|\btit\b|\btitfuck\b|\btits\b|\btittyfuck\b|\btwat\b|\btwatlips\b|\btwats\b|\btwatwaffle\b|\bva-j-j\b|\bvag\b|\bvjayjay\b|\bwank\b|\bwetback\b|\bwhore\b|\bwhorebag\b|\bwop\b|\bхуя\b|\bpabula\b/i,
                answer = document.getElementById('article_textarea').value;
            if (answer.match(badwords)) {
                window.alert("Please do not add bad words into questions!");
                return;
            } else {
                return handleEditForm(this);
            }
        };
    });
}(this.jQuery, this.document));
1 6
  • Upvote
  • Reply
Avatar
Avatar
Avatar

This could be helpful. I'll get Catuse to take a look at it over at Final Fantasy Answers (I don't know the first thing about coding). We had to disable the spam filter because it was too strict; sometimes we had no idea why it was preventing some questions from being made, and in one incident it was throwing a shit-fit because the word orichalcum has "cum" in it. Stupid filter...

0

As an addendum, we did get AbuseFilter partially working on Wikianswers, though it has some limitations. It can't be used to stop nonsense questions from being created, for instance. If you'd like, you can import our filter. Cum is matched with "\bcum", so it wouldn't trip on Orichalcum. I can add additional words to it if you'd like; we had to leave some off because they can have valid contexts that aren't needed for Final Fantasy.

0

Where is this put? I'm interested in having it at the Star Trek Answers Wiki. 31dot (talk) 21:35, June 27, 2013 (UTC)

0
http://answers.wikia.com/wiki/Special:AbuseFilter/15 is our Profanity filter with no bots.
0

The reason for "(no bots)" is so that we can find affected pages retroactively, without impairing our ability to hunt down new vandals.

0
I'm glad we got an abuse filter on our wiki.
Write a reply...