I AM LISTENING TO
|
WHAT I LIKE

Prevent hotlinking

14. February 2012







Simple way to prevent hotlinking using your htaccess

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(jpe?g|gif|bmp|png)$ – [F]

Just replace mysite.com with your own domain.




Leave a Reply

avatar
  Subscribe  
Notify of
Previous Next