Skip to content

Commit 9294107

Browse files
authored
Remove section that prevents hotlinking
The rewrite rule required a hard-coded domain which developers would need to update or their assets would give 403 errors. Better to allow developers to add this themselves than supply an .htaccess file that doesn't work out-of-the-box.
1 parent 2b0bbf4 commit 9294107

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

public/.htaccess

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ AddDefaultCharset utf-8
6060
RewriteCond %{REQUEST_FILENAME} !-d
6161
RewriteRule ^(.*)$ index.php/$1 [L]
6262

63-
# Disable image hotlinkiing start
64-
RewriteCond %{HTTP_REFERER} !^$
65-
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC]
66-
RewriteRule \.(jpg|jpeg|png|gif)$ [NC,F,L]
67-
# Disable image hotlinkiing end
68-
6963
# Ensure Authorization header is passed along
7064
RewriteCond %{HTTP:Authorization} .
7165
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

0 commit comments

Comments
 (0)