# Prevent PHP execution in uploads directory
<FilesMatch "\.(php|php3|php5|phtml|pl|py|jsp|asp|sh|cgi)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Deny direct access to PHP files
Options -ExecCGI
RemoveType .php .php3 .php5 .phtml
AddType text/plain .php .php3 .php5 .phtml
