Skip to content

Commit 5d49d2c

Browse files
authored
Merge pull request #1939 from MGatner/htaccess-remove-antihotlinking
Remove section that prevents hotlinking
2 parents 2b0bbf4 + 9294107 commit 5d49d2c

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)