Posted By

jeromegamez on 07/02/10


Tagged

htaccess security


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

Vordreller
dantreacy
ichnoweb
NyX


Disable hotlinking of images


 / Published in: Apache
 

  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  

You need to login to post a comment.