RewriteEngine On RewriteCond %{REQUEST_URI} php/ [NC,OR] RewriteCond %{REQUEST_URI} /php [NC,OR] RewriteCond %{REQUEST_URI} \.\. [NC,OR] RewriteCond %{REQUEST_URI} \.(git|env|bak|exe) [NC,OR] RewriteCond %{REQUEST_URI} (cgi-bin|owa|oracle|admin|server)/ [NC] RewriteRule ^ - [E=USE_PETITBAN:1,E=CLIENT_IP:%{REMOTE_ADDR}]