repair htaccess
This commit is contained in:
11
.htaccess
11
.htaccess
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user