Disable hotlinking of images


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteCond %{HTTP_REFERER} !^$
  3. RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
  4. #RewriteRule \.(gif|jpg|png)$ - [F]
  5. #RewriteRule \.(gif|jpg|png)$ http://www.yourdomain.com/youfilthythief.gif [R,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.