RewriteEngine On

# Headers básicos de segurança
<IfModule mod_headers.c>
    Header always set X-Frame-Options "SAMEORIGIN"
    Header always set X-Content-Type-Options "nosniff"
</IfModule>

# Bloquear acesso direto a arquivos sensíveis
<FilesMatch "^(blocked_ips\.txt|bots_list\.txt|\.htaccess|\.env)$">
    Order allow,deny
    Deny from all
</FilesMatch>
