.htaccess bot block and image theft


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

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.