# ============================================
# .htaccess MINIMAL - ContBot
# PHP 7.4 en Bluehosting
# ============================================

# Desactivar MultiViews
Options -MultiViews -Indexes

# Forzar PHP 7.4
<IfModule mime_module>
    AddHandler application/x-httpd-ea-php74 .php
</IfModule>

<FilesMatch "\.php$">
    SetHandler application/x-httpd-ea-php74
</FilesMatch>

# Permitir acceso a archivos PHP
<FilesMatch "\.(php|html|css|js|png|jpg|jpeg|gif|ico)$">
    Order allow,deny
    Allow from all
</FilesMatch>

# Proteger solo archivos que empiezan con punto
<FilesMatch "^\.">
    Order allow,deny
    Deny from all
</FilesMatch>

# Proteger credenciales JSON
<Files "google-service-account.json">
    Order allow,deny
    Deny from all
</Files>

DirectoryIndex index.php index.html