Skip to content

Commit

Permalink
Merge pull request #1939 from MGatner/htaccess-remove-antihotlinking
Browse files Browse the repository at this point in the history
Remove section that prevents hotlinking
  • Loading branch information
jim-parry authored Apr 11, 2019
2 parents 2b0bbf4 + 9294107 commit 5d49d2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ AddDefaultCharset utf-8
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

# Disable image hotlinkiing start
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ [NC,F,L]
# Disable image hotlinkiing end

# Ensure Authorization header is passed along
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Expand Down

0 comments on commit 5d49d2c

Please sign in to comment.