This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrules.yaml
68 lines (51 loc) · 4 KB
/
rules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Removing posts from accounts that are less than a week old
author:
account_age: '< 7 day'
action: filter
action_reason: 'Account is less than 7 days old.'
comment: Sorry, your submission has been automatically removed. New accounts are not allowed to submit content. This is to combat spam.
---
# Remove posts from accounts with less than 3 karma
author:
comment_karma: '< -5'
action: filter
action_reason: 'Account has less than 5 karma.'
---
# A script to catch arguements
body+title (includes-word, regex): ['k(ill (yo)?ursel[fv](e?s)?|ys)', 'fuck (yo)?u(rsel[fv](e?s)?)?', 's(hut the fuck up|tfu)', '((s[a4]nd)?k?n[il1]gg?g?([e3][e3]?r|l[e3]t(te?)?)|sh[il1]t[- ]?sk[i1]n(n[e3]d)?|(f|ph)[a4]gg?g?([o0]t)?|[a4]ut[il1]s(t([il1]c)|m)?|ch[il1y]nc?k|[dk]h?[yil1]k[e3]|g[o0](llyw[o0]g|[o0]k)|j[e3]w|n[a4]z[il1]|r[e3]t[a4]rd([e3]d)?|qu[e3][e3][e3]?r)', '(yo)?u(''r|r| ar)e( (all|both))?( just)?( s(uch|o))?( an?)? ((?#ADJ_START)((idiot|moron)(ic)?|spastic|stupid|shit(ty)?|(mother)?fuckin[g'']?|fat|gay|dumb)([- ]?ass)?(?#ADJ_END)|(?#NOUN_START)(ass([- ]?h(ole|at))?|bell([- ]?end)?|cho(ad|de)|cu(nt|ck)|((((d|pr)i|co)ck|k?nob)([- ]?(jocke?y|((s|f)u|li)cker))?)|(mother)?fucker|bit?ch|douche|flange|idiot|moron)(?#NOUN_END)s?)', 'Get (Leukemia|AIDS|HIV|Ebola|Cancer)', 'hope you die', 'kys', 'Go (run|step|jump|play|die) in traffic', '(Kill|Hang) (yo)urself']
action: filter
action_reason: 'A phrase was caught in the insult filter: "{{match}}".'
---
#Fightin' words
title+body (regex): ['ban\W?(me|you)','shut\W?the\s*fuck\W?up','fuck\W?((yo)?ursel(f|ves))','(mother)?fucking\s*(idiots?|bitche?s?|morons?|dicks?|whores?)','(yo)?u(r|''re)?\s*dumb(fuck)?','f[#u]+ck\s*is\s*wrong','you(r|''re)?\W?(a|an)?\W?(fucking)?\W?((dumb)?ass\W?(wipes?|munch|clowns?|holes?)|idiot)','insulti?n?g\W?(you|my|me|your)','(yo)?u''?r?e?\W?(fuck(ing)?)?\W?retard(ed)?','suck\W?my','cuck(ing)?','fuck off','fucking?\W?weebs?','you\s+.*\s+twat','shitmod','toxic','accusing me','question(ing)? (yo)?ur intelligence', 'nig(s|z|ga|gas|gaz|gerz|ger|gers|lets|glets|r)','beaner(s|z)','spick(s|z)','fag(got|s|z|gots|gotz)','wetback(s)','gook(s)', 'honk(ey|ie)', 'kike(s|z)', 'puss(y|ies)', 'cunt(s|z)', 'whore(s|z)', 'cuck(s|z)', 'shill(s|z)', 'nigga(s|z)', 'shill(s|z)', 'cuck(s|z)', 'gay(s|z)', 'douchebag(s|z)', 'autis(m|t|ts|tic)', 'retard(s|z|ed)', 'cock(s|z)', 'sjw(s|z)']
action: filter
action_reason: "Fightin' words - {{match}}"
---
# Remove phone numbers and send modmail for review
title+body: ["\\(?(\\d{3})\\)?([ .-])(\\d{3})([ .-])(\\d{4})","(\\d{5})([ .-])(\\d{6})","\\(?(\\d{4})\\)?([ .-])(\\d{3})([ .-])(\\d{3})","\\(?(\\d{2})\\)?([ .-])(\\d{4})([ .-])(\\d{4})","\\(?(\\d{2})\\)?([ .-])(\\d{3})([ .-])(\\d{4})","\\+([\\d ]{10,15})"]
body+url: "(\\[[^\\]]+?\\]\\()?(https?://|www\\.)\\S+\\)?"
body+title+url: ["(800|855|866|877|888|007|911)\\W*\\d{3}\\W*\\d{4}", "\\d{3}\\W*555\\W*\\d{4}", "999-999-9999", "000-000-0000", "123-456-7890", "111-111-1111", "012-345-6789", "888-888-8888", "281\\W*330\\W*8004", "777-777-7777", "678-999-8212", "999([ .-])119([ .-])7253","0118 999 811","0118 999 881", "867( -)?5309", "505\\W*503\\W*4455", "1024 2048"]
action: filter
action_reason: 'A phone number was detected.'
comment: 'A phone number was detected.'
---
# Remove email addresses and send modmail for review
title+body: "[!#$%&'*+./0-9=?_`a-z{|}~^-]+@[.a-z-]+\\.(?:com|org|net)"
action: filter
action_reason: 'An email address was detected.'
---
# Remove valid credit card numbers and send modmail for review
title+body: "\\b(?:4[0-9]{12}(?:[0-9]{3})?|5[12345][0-9]{14}|3[47][0-9]{13}|3(?:0[012345]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35[0-9]{3})[0-9]{11})\\b"
action: filter
action_reason: 'A credit card number was detected.'
---
# Remove valid IPv4 addresses and send modmail for review
title+body: "\\b[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\b"
action: filter
action_reason: 'An IP address was detected.'
---
# All Caps Title Filter
title (case-sensitive, regex, full-text): "([A-Z0-9!,.]|\\W)+"
action: filter
action_reason: "All Caps Title"
---