# ==============================================================================
# ComicHub - Reglas de Seguridad para la Carpeta de Subidas (uploads/)
# ==============================================================================

# 1. Prohibir la ejecución de scripts PHP y ejecutables
<FilesMatch "(?i)\.(php|php3|php4|php5|php7|php8|phtml|phps|phar|inc|pl|cgi|py|sh|bash|exe|jsp|asp|aspx)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# 2. Deshabilitar el motor PHP como módulo de Apache
<IfModule mod_php.c>
    php_flag engine off
</IfModule>
<IfModule mod_php7.c>
    php_flag engine off
</IfModule>
<IfModule mod_php8.c>
    php_flag engine off
</IfModule>

# 3. Deshabilitar listado de directorios y CGI
Options -Indexes -ExecCGI
