Closed potats0 closed 1 year ago
Implement coraza_rules_add and coraza_rules_add_file functions, which can dynamically add rules at any time. such as
er := stringToC("a") waf := coraza_new_waf() coraza_rules_add(waf, stringToC(`SecRule REQUEST_HEADERS:User-Agent "Mozilla" "phase:1, id:3,drop,status:403,log,msg:'Blocked User-Agent'"`), &er) coraza_rules_add_file(waf, stringToC(`default.conf`), &er)
Implement coraza_rules_add and coraza_rules_add_file functions, which can dynamically add rules at any time. such as