Skip to content

PatternsOWASP WAF Rules for Web Servers

Automated OWASP CRS patterns and Bad Bot detection for Nginx, Apache, Traefik, and HAProxy

Patterns

Quick Start

Download the latest configurations from GitHub Releases or build from source:

bash
git clone https://github.com/fabriziosalmi/patterns.git
cd patterns
pip install -r requirements.txt
python owasp2json.py
python json2nginx.py  # or json2apache.py, json2traefik.py, json2haproxy.py

Supported Platforms

PlatformConfig FormatDocumentation
Nginx.conf filesRead more →
ApacheModSecurity rulesRead more →
TraefikMiddleware TOMLRead more →
HAProxyACL filesRead more →

Using Caddy?

Check out the caddy-waf project for Caddy-specific WAF support.

Released under the MIT License.