# Los archivos subidos nunca deben ejecutarse como código.
Options -Indexes -ExecCGI

<FilesMatch "(?i)\.(?:php|php[0-9]?|phtml|phar|cgi|pl|py|sh|asp|aspx|jsp|exe|com|bat|cmd)$">
    Require all denied
</FilesMatch>

<IfModule mod_mime.c>
    RemoveHandler .php .php3 .php4 .php5 .php7 .php8 .phtml .phar .cgi .pl .py .sh
    RemoveType .php .php3 .php4 .php5 .php7 .php8 .phtml .phar
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    Header always set Content-Security-Policy "default-src 'none'; img-src 'self'; media-src 'self'; style-src 'none'; script-src 'none'; sandbox"
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "(?i)\.(?:php|php[0-9]?|phtml|phar|cgi|pl|py|sh|asp|aspx|jsp|exe|com|bat|cmd)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
