How to Use the Web Application Firewall
Protect your website with ModSecurity via the Web Application Firewall (WAF).
Steps


apacheCopiarEditarSecRule REQUEST_HEADERS:User-Agent "@rx (sqlmap|nikto|fuzz)" \ "id:100001,phase:1,deny,status:403,msg:'Blocking suspicious User-Agent'"apacheCopiarEditarSecRule &ARGS "@gt 10" \ "id:100002,phase:2,deny,status:403,msg:'Too many URL parameters'"apacheCopiarEditarSecRule FILES_NAMES "@rx \.(exe|php|jsp)$" \ "id:100003,phase:2,deny,status:403,msg:'Executable file upload blocked'"
pythonCopiarEditarModSecurity: Access denied with code 403 (phase 2). Match of "rx sqlmap" against "REQUEST_HEADERS:User-Agent" required. [id "100001"] [msg "Blocking suspicious User-Agent"]
Last updated
