Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PwnFilter rules.txt - Define Regular Expression Rules
- # SAMPLE RULES http://dev.bukkit.org/server-mods/pwnfilter/
- # NOTE: ALL MATCHES AUTOMATICALLY IGNORE CASE
- # Each rule must have one 'match' statement and atleast one 'then' statement
- # match <regular expression>
- # ignore|require <user|permission|string> *(optional)
- # then <replace|rewrite|warn|log|deny|debug|kick|command|console> <string>
- # For more details visit http://dev.bukkit.org/server-mods/pwnfilter/
- # EXAMPLES
- # Replace F Bomb variants with fudge. Also catches ffffuuuccckkk
- match f+u+c+k+|f+u+k+|f+v+c+k+|f+u+q+|fucing|f.uck|fu.ck|fuc.k|f.u.c.k
- then replace fudge
- then warn Watch your language please
- then log
- # Replace a list of naughty words with meep! Let a certain permission swear.
- match cunt|whore|fag|slut|queer|bitch|bastard|cock|dick|niger|nigger|niggar|nigar|twat|asshole|douche|douches|shit|wtf|penis|whore
- then replace meep
- # FIX the .command typo with /command
- match ^\.(?=[a-z]+)
- then replace
- then command
- # Fun: rewrite tremor with pretty colors. Only let player tremor77 use it
- match \btremor+\b|\btrem+\b
- require user tremor77
- then rewrite &bt&cREM&bor&f
- ###### FIXES FOR 'aaaaa', 'hihihihihihhi', 'lolololololol' type spam.
- # TRIM a single repeated character to 2 repeats maximum
- # fixes "aaaaaaaaaaaaa"
- # match (.)(?=\1\1+)
- # then replace
- # TRIM 2 repeated characters to 2 repeats maximum:
- # fixes "hihihihihi"
- # match (..)(?=\1\1+)
- # then replace
- # TRIM 3 repeated characters to 2 repeats maximum
- # fixes "lollollollollol"
- match (...)(?=\1\1+)
- then replace
- ###### COMPLEX FILTERS
- # REPLACE AN IP ADDRESS - unless posted by player with permission
- # Also will ignore IP ADDESSES matching "ignore string"
- match \b\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\b
- ignore permission permission.name
- ignore string 192.168.1.7|71.187.173.56
- then replace mankaraminecraft.com
- # then kick Do Not Advertise On Our Server
- then log
Advertisement
Add Comment
Please, Sign In to add comment