# Uploaded files are user-supplied data, never executable code.
# Disable any server-side handlers so a smuggled .php/.phtml cannot run.

php_flag engine off
AddType text/plain .php .php3 .php4 .php5 .php7 .phtml .pht .phar .cgi .pl .py .asp .aspx .jsp .sh

<FilesMatch "\.(php|php3|php4|php5|php7|phtml|pht|phar|cgi|pl|py|asp|aspx|jsp|sh|htaccess)$">
    Order allow,deny
    Deny from all
</FilesMatch>

RemoveHandler .php .phtml .phar .cgi .pl .py
RemoveType .php .phtml .phar
Options -ExecCGI -Indexes
