Load OWASP Core Ruleset (CRS)
mainTo use the OWASP Core Ruleset, use the load_owasp_crs option within the coraza_waf block. You must then manually Include the necessary CRS configuration files (like crs-setup.conf.example and the rule files) within the directives block, following the coraza-coreruleset documentation. Ensure SecRuleEngine On is set to enable enforcement.
:8080 {
coraza_waf {
load_owasp_crs
directives `
Include @coraza.conf-recommended
Include @crs-setup.conf.example
Include @owasp_crs/*.conf
SecRuleEngine On
`
}
reverse_proxy httpbin:8081
}