# Pangolin Security Rules for Towerops # Block common web attacks and malicious traffic # # Apply these rules to your Pangolin configuration to filter traffic before # it reaches your application server. # # Documentation: https://docs.pangolin.net/ # ============================================================================ # SQL Injection Attempts # ============================================================================ [[rules]] name = "Block SQL Injection - UNION" match.url.regex = "(?i)(union.*(all|select)|select.*from.*information_schema)" action = "block" log = true [[rules]] name = "Block SQL Injection - Common Patterns" match.url.regex = "(?i)(\\bor\\b.*=.*|\\band\\b.*=.*|'.*or.*'|\".*or.*\"|;.*drop|;.*delete|;.*insert|;.*update)" action = "block" log = true [[rules]] name = "Block SQL Injection - Comments" match.url.regex = "(?i)(/\\*.*\\*/|--.*$|#.*$)" action = "block" log = true # ============================================================================ # Cross-Site Scripting (XSS) # ============================================================================ [[rules]] name = "Block XSS - Script Tags" match.url.regex = "(?i)(