From 92941072bb818be93bd3bc5467bc3ffae1ecd5ef Mon Sep 17 00:00:00 2001 From: MGatner Date: Thu, 11 Apr 2019 13:43:19 -0400 Subject: [PATCH] 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. --- public/.htaccess | 6 ------ 1 file changed, 6 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index adfbcd599ef6..ae39f88f21b3 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -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}]