# Nginx WAF rules for PHP # Automatically generated from OWASP rules. # Include this file in your server or location block. map $request_uri $waf_block_php { default 0; "~*(?i)php://(?:std(?:in|out|err)|(?:in|out)put|fd|memory|temp|filter)" 1; "~*(?:bzip2|expect|glob|ogg|(?:ph|r)ar|ssh2(?:.(?:s(?:hell|(?:ft|c)p)|exec|tunnel))?|z(?:ip|lib))://" 1; "~*[oOcC]:d+:\".+?\":d+:{.*}" 1; "~*@pm =" 1; "~*(?:" 1; "~*.*.(?:phpd*|phtml)..*$" 1; "~*(?i)