htaccess
TheeOhioState opened this issue · 1 comments
Had a question i'm sure someone might have came across and would share a fix.
In the provided htaccess file , i had to add prevention for hotlinking. After doing so , when you open any image in the directories in lightbox , there is a download link. Once clicked it fails to download the file when disabling the hotlinking. Any ideas on why that is happening ?
Added to htaccess to disable hotlinking , and now lightbox won't allow for downloads
disable hotlinking
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www.)?mysite.com/.*$ [NC]
RewriteRule .(jpg|jpeg|gif|png|bmp)$ - [F]
fixed
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !domain.com/ [NC]
RewriteCond %{REQUEST_FILENAME} !hotlink.png$
RewriteRule .*.(png)$ https://domain.com/hotlink.png [R=302,L]