repair htaccess

This commit is contained in:
edsea
2025-08-13 14:45:39 +02:00
parent 4c85f23333
commit e5702dd76e

View File

@@ -42,17 +42,6 @@ RewriteRule ^([^/]+)/$ index.php?page=$1 [L,QSA]
ExpiresByType application/font-woff2 "access plus 1 year"
</IfModule>
# Prevent hotlinking (allow empty referrers and local/dev environments)
<IfModule mod_rewrite.c>
# Allow empty referrers (direct requests, private browsing)
# Allow stellaamor.com, local dev, and localhost
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?stellaamor\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http?://stellaamor\.local [NC]
RewriteCond %{HTTP_REFERER} !^http?://127\.0\.0\.1 [NC]
RewriteCond %{HTTP_REFERER} !^http?://localhost [NC]
RewriteRule \.(jpg|jpeg|png|gif|svg|webp|css|js|woff|woff2)$ - [NC,F,L]
</IfModule>
# Security headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"