RewriteEngine On

# Bloqueia bots de verificação de direitos autorais
RewriteCond %{HTTP_USER_AGENT} (Googlebot|Bingbot|YandexBot|AhrefsBot|SemrushBot|MJ12bot|Sogou|Exabot|DotBot|Twitterbot|facebookexternalhit|LinkedInBot) [NC]
RewriteRule .* - [F,L]

# Redireciona todas as rotas para o index.html (necessário para SPAs React/Vite)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
