Skip to content

Instantly share code, notes, and snippets.

@jeremyvaught
Created August 23, 2017 14:02
Show Gist options
  • Save jeremyvaught/d04d0b7b5e2fac7fde9ff5f772cd908b to your computer and use it in GitHub Desktop.
Save jeremyvaught/d04d0b7b5e2fac7fde9ff5f772cd908b to your computer and use it in GitHub Desktop.
Reddit Automoderator filters I'm using
# https://www.reddit.com/r/subreddit/wiki/config/automoderator
# Our own personal shaddowban list
author:
name:
# section comment (eg spammers)
- username1
- username2 # comment for specific user
# section comment (eg trolls)
- username3
action: remove
---
# Stop brand new users from posting. Send modmail.
type: submission
author:
account_age: "< 2 days"
action: filter
action_reason: "This submission has been posted by a possible spam user. Please approve if this is incorrect."
---
# Stop brand new users from commenting.
type: comment
author:
account_age: "< 24 hours"
action: filter
action_reason: "This submission has been posted by a possible spam user. Please approve if this is incorrect."
---
# Troll Prevention
author:
comment_karma: "< -50"
action: remove
---
# Heavily Reported Items
reports: 4
action: remove
modmail: The above {{kind}} by /u/{{author}} was removed because it received 4 reports. Please investigate and ensure that this action was correct.
---
# Profanity Filter
title+body (regex): ["a(ss|rse|es)([ -]?holes?)?","b(i|\\*)o?(tch|\\*{3})(y|es)?","cocks?([ -]?suck(ers?|ing)?)?","cum(ming|[ -]shots?)?","cunts?","((mother|motha|mutha)[ -]?)?f(u?c?k?k|\\*ck|\\*{0,2}k|\\*{3})(er|ed|ing|s)?", "s(h(i|ar?|\\*)t|\\*{3}|h\\*{2})(s|ter|e|ting)?"]
action: remove
message: |
Your [{{kind}}]({{permalink}}) in /r/{{subreddit}} was automatically removed.
/r/{{subreddit}} intended to be enjoyable for everyone, so please watch your language.
---
# Slur removal
body (includes, regex): ["sluts?", "whores?", "(sand\\W?)?nig(?!a|e|i|o|u)g(a|er)?s?\\b", "chinks?", "tran(?!s)n?(y|ie)?[sz]?\\b", "cunts?", "rag\\W?heads?", "autist(?!i)", "towel\\W?heads?", "camel\\W?fuc?kers?", "(poo\\W?)in(\\W?the\\W?)?loo", "superpower by", "D\\W?E\\W?S\\W?I\\W?G\\W?N\\W?A\\W?T\\W?E\\W?D", "shitting streets?", "nigger", "cuck", "nignog", "moor"]
action: filter
action_reason: "removed slur [{{match}}]"
---
# Slur removal x2
type: any
title+body (regex): ["(?!homo\\W?sapien)homosb?\\", "(dot|rag|towel)\\W?heads?", "(p[0o]rch|sand)\\W?m[0o]nk(ey|ie|y)s?", "(p[0o]rch|sand)\\W?nigg(er|r|a|let)s?", "(ph|f)[@a]gg?([e0aio]t|oted|otry)?s?", "(re|fuck|jerk|lib|republi)?(?<!bas)tard(s|ed(ly)?)?", "(shit|mud)\\W?skins?", "ape\\W?fricans?", "beane[ry]s?", "beetusbehemoths?", "boot\\W?lips?", "bundle of (billets|sticks|wood)", "chimpires?", "china\\W?m[ae]n", "chinks?", "christ\\W?killers?", "cock\\W?suckers?", "coons?(y|i?e?s?|er)", "cuck(old)?s?", "cunts?y?", "dark(e?y|ies?)", "dind[ou]s?", "dune\\W?coone?r?s?", "fag(g?[ioe]tt?)?(ry|s)?", "fat\\W?fucks?", "femi\\W?nazis?", "fuck\\W?(wit(?!h)s?|tards?)", "fuck\\W?boys?", "fucking\\W?(whores?)", "fupas?", "g(ooks?|00ks?)", "gays?(est|ly|er)", "gaywads?", "ghey", "gooks?", "goy(im)?s?", "groids?", "h[i!¡y]mies?", "half\\W?breeds?", "happy\\W?merchants?", "heebs?", "high\\W?yellows?", "holo\\W?hoaxe?s?", "honk(ie|ey|y)s?", "j[!i]gg?[aer]+(boo?s?|b00?s?)", "jew\\W?(tubes?|nited)", "jig\\W?apes?", "jigg?[aer]+(b[0o]ing)", "juden", "jungle\\W?bunn(y|ie)?s?", "k[iy]+kes?", "kkk", "klan", "lady\\W?boys?", "lesbos?", "mignorants?", "mongoloids?", "moon\\W?crickets?", "mud\\W?(child(ren)?|skin)s?", "muslimes?", "n[1!i]gs?-?(?!ht)", "n[i!j1e]+gg?(rs?|ett?e?s?|lets?|ress?e?s?|r[a0oe]s?|[ie@ao0!]rs?|r[o0]ids?|ab[o0]s?|erest)", "n[i1][g6][g6]?(?!ht)([e3]r)?(n[o0]g|l[e3]t|r[e3][s5][s5])?([e3]?[s5])?", "nambla", "nig\\W?town", "nigg(er|r|r?a|lett?)s?z?(?!ht)", "nigg?[aeoi]s?", "nig(gs?|s)", "obeasts?", "paki(?!stan)", "pike?(ys?|ies)", "puss(y|ies?)", "queer\\W?bags?", "shee?\\W?boons?", "shemales?", "shit\\W?(bag|dick|lord)s?", "shoahs?", "spear\\W?chuckers?", "suspooks?", "tarbab(ys?|ies?)", "wet\\W?backs?", "whore\\W?mouth"]
~title+body (regex, case-sensitive): ["SP[Ii]C"]
action: filter
action_reason: "Slur: [{{match}}]"
---
# Abusive Language
type: any
title+body (regex): ['(?!homo.?sapien)homos?', '(dot|rag|towel|ditto).?heads?', '(p[0o]rch|sand).?(m[0o]nk|n[ie]g)\w*', '(fuck|jerk|lib(er)?|repub(li)?|conserv[ia])?(tard|cunt)s?', ".da.bz|r.conservative.comments|r.shitpoliticssays.comments",
'[nj][ij1e!_*][g6]+([a@be3i!o0r]+|n[o0]g|[lei3s]+t+|town|ape)*[edsz35]*', # Variations of nigger
'(ph|f)[@a]g+([e0aio]t(ry)?)?[edsz35]*', # Variations of faggot
'(ape.?frican|beane[ry]|beetusbehemoth|bix nood|boot.?lip|bundle of (billet|stick|wood)|chimpir|china.?m[ae]n|christ.?killer|cock.?sucker|cunty?|dark(e?y|ie)|dind[ou]|dune.?coone?r?|fat.?fuck|femi.?nazi|fuck.?(wit|tard|boy)|fucking.?whore|fupa|gay(est|ly|er|wad)|ghey|g[o0]{2,}k|goy(im)?|groid|h[i!¡y]mie|half.?breed|happy.?merchant|heeb|high.?yellow|holo.?hoax|honk[iey]+|jew.?(tube|nited)|juden|jungle.?bunn(y|ie)?|lady.?boy|lesbo|mignorant|mongoloid|moon.?cricket|(shit|mud).?(child(ren)?|skin)|muslime|obeast|paki|pike?(y|ie)|retard[edly]*|shee?.?boon|shit.?(bag|dick|lord)|shoah|trol+(ing|ish)?|whore.?mouth)[edsz35]*',
'(aunt jemima|bagger|beaner|berniebot|chink|coon[yier]*|conspiritard|corpirate|crack(er|a)|dago|democrap|dindu|fembo[iy]|goll[yi]wog|goy(a|im)?|gunbertarian|half.?breed|hitlary|k[iy]+ke|liberlul|mamm(ie|y|ey)?|mongrel|muslin|nuffin|paki|paul.?(tard|bot)|pickaninn(ie|y)|queer|repube(lican)?|rethuglican|sambo|scumbag_rpolitics_mod|shemale|slut|spi([ck][^eyi]+|g?otty)|spear.?chucker|subredditdrama|suspook|tarbab(y|ie)|tea.?bagger|trann?(y|ie)|uncle.?tom|url4u.co|wet.?back|wog|wop|yid)[edsz35]*']
~title+body (regex, case-sensitive): ["SP[Ii]C"] # anti-match
ignore_blockquotes: true
action: report
action_reason: Naughty language :( - [{{match}}]
---
# Racism alert
title+body (regex): ["Nigger", "nigga", "kike", "faggot", "fag", "faget", "fagget", "spic", "spick", "gook", "chink", "tranny", "trannie", "shemale", "faggotry", "honkie", "honkey", "greatapes", "bundle of sticks", "stfu liberal", "dindu", "din do", "din du", "nuffin", "raysis", "blacklivesmatter", "black lives matter", "blm", "((\\/)?r\\/)?sweden ?yes", "falafel", "snek", "kebab", "kingz", "kangz"]
action: report
action_reason: Naughty language :( - [{{match}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment