iorunner

pwnfilter rules

Apr 17th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. # PwnFilter rules.txt - Define Regular Expression Rules
  2. # SAMPLE RULES http://dev.bukkit.org/server-mods/pwnfilter/
  3. # NOTE: ALL MATCHES AUTOMATICALLY IGNORE CASE
  4. # Each rule must have one 'match' statement and atleast one 'then' statement
  5. # match <regular expression>
  6. # ignore|require <user|permission|string> *(optional)
  7. # then <replace|rewrite|warn|log|deny|debug|kick|command|console> <string>
  8. # For more details visit http://dev.bukkit.org/server-mods/pwnfilter/
  9.  
  10. # EXAMPLES
  11.  
  12. # Replace F Bomb variants with fudge. Also catches ffffuuuccckkk
  13. 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
  14. then replace fudge
  15. then warn Watch your language please
  16. then log
  17.  
  18. # Replace a list of naughty words with meep! Let a certain permission swear.
  19. match cunt|whore|fag|slut|queer|bitch|bastard|cock|dick|niger|nigger|niggar|nigar|twat|asshole|douche|douches|shit|wtf|penis|whore
  20. then replace meep
  21.  
  22. # FIX the .command typo with /command
  23. match ^\.(?=[a-z]+)
  24. then replace
  25. then command
  26.  
  27. # Fun: rewrite tremor with pretty colors. Only let player tremor77 use it
  28. match \btremor+\b|\btrem+\b
  29. require user tremor77
  30. then rewrite &bt&cREM&bor&f
  31.  
  32. ###### FIXES FOR 'aaaaa', 'hihihihihihhi', 'lolololololol' type spam.
  33.  
  34. # TRIM a single repeated character to 2 repeats maximum
  35. # fixes "aaaaaaaaaaaaa"
  36. # match (.)(?=\1\1+)
  37. # then replace
  38.  
  39. # TRIM 2 repeated characters to 2 repeats maximum:
  40. # fixes "hihihihihi"
  41. # match (..)(?=\1\1+)
  42. # then replace
  43.  
  44. # TRIM 3 repeated characters to 2 repeats maximum
  45. # fixes "lollollollollol"
  46. match (...)(?=\1\1+)
  47. then replace
  48.  
  49.  
  50.  
  51.  
  52. ###### COMPLEX FILTERS
  53.  
  54.  
  55.  
  56. # REPLACE AN IP ADDRESS - unless posted by player with permission
  57. # Also will ignore IP ADDESSES matching "ignore string"
  58. match \b\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\b
  59. ignore permission permission.name
  60. ignore string 192.168.1.7|71.187.173.56
  61. then replace mankaraminecraft.com
  62. # then kick Do Not Advertise On Our Server
  63. then log
Advertisement
Add Comment
Please, Sign In to add comment