Skip to content

Commit

Permalink
Remove section that prevents hotlinking
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MGatner authored Apr 11, 2019
1 parent 2b0bbf4 commit 9294107
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 9294107

Please sign in to comment.