# Deny direct execution of scripts in uploads directory RewriteEngine On RewriteRule \.(php|phtml|php3|php4|php5|php7|php8|phps|phar|cgi|pl|py|sh|asp|aspx|jsp|exe|bat|cmd)$ - [F,L,NC] Require all denied Order Deny,Allow Deny from all Options -Indexes -ExecCGI php_flag engine off php_flag engine off php_flag engine off