Options -Indexes
DirectoryIndex index.html
<IfModule mod_rewrite.c>
RewriteEngine On
# Um dominio publicado com login deve funcionar exclusivamente em HTTPS.
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^localhost(:[0-9]+)?$ [NC]
RewriteCond %{HTTP_HOST} !^127\.0\.0\.1(:[0-9]+)?$ [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^bridge/(login|sync|logout|player|state|xtream|search)/?$ bridge/router.php [L,QSA,NC]
RewriteRule ^stream/resource/?$ stream/index.php [L,QSA,NC]
RewriteRule ^stream/(live|movie|series)/([0-9]+)\.(m3u8|ts|mp4|mkv|avi|mov|webm)$ stream/index.php?kind=$1&id=$2&ext=$3 [L,QSA,NC]
RewriteRule ^api/tmdb/now-playing/?$ api/tmdb.php?action=now_playing [L,QSA,NC]
</IfModule>
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set X-Frame-Options "SAMEORIGIN"
</IfModule>
<FilesMatch "(?i)^(\.env|\.git|README.*|.*\.sql|.*\.log|.*\.bak)$">
Require all denied
</FilesMatch>
