Options -Indexes

# Este directorio contiene archivos aportados por usuarios. Nunca debe ejecutar código.
<FilesMatch "(?i)\.(php[0-9]?|phtml|phar|cgi|pl|py|sh|shtml|htaccess)$">
    Require all denied
</FilesMatch>

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

SetHandler default-handler
ForceType application/octet-stream

<IfModule mod_headers.c>
    Header set Content-Disposition attachment
    Header set X-Content-Type-Options nosniff
</IfModule>

# Las imágenes permitidas pueden mostrarse en el navegador.
<FilesMatch "(?i)\.(gif|jpe?g|png)$">
    ForceType none
    <IfModule mod_headers.c>
        Header unset Content-Disposition
    </IfModule>
</FilesMatch>
