Hotlinking Protection

  • Thread starter Thread starter Deleted member 745
  • Start date Start date
D

Deleted member 745

Guest
Hi,

How come my old Hotlinking code isn't working on my new host, any ideas anyone?

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ https://i.imgur.com/ZtXiCBw.gif [L]

Thanks

EDIT - Seems to be working now, cache browser needed deleting.
 
Last edited by a moderator:
Strange it seems to be working on Chrome and Firefox but Edge it stops the favicon.ico showing and shows the hotlink image instead.
 
Back
Top Bottom