Posted By

CKOink on 04/27/11


Tagged

htaccess security


Versions (?)

.htaccess bot block and image theft


 / Published in: C
 

Blocks bad bots, and image theft, allows visitors inside domains.

  1. RewriteEngine On
  2. RewriteCond %{HTTP_USER_AGENT} ^Wget [or]
  3. RewriteRule ^.* - [F,L}
  4. RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?seventhpartydesigns.com [NC]
  5. RewriteRule \.(jpg|jpeg|png|gif|flv|swf)? - [NC,F,L]

Report this snippet  

You need to login to post a comment.