×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Joseph Orlando
Added: Mar 13, 2013 11:02 PM
Views: 23
Protect from Other Websites requesting to show images from your website.

*Only allows URLS given. SSL Supported.
  1. RewriteEngine on
  2. RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$      [NC]
  3. RewriteCond %{HTTP_REFERER} !^http://domain.com$      [NC]
  4. RewriteCond %{HTTP_REFERER} !^https://domain.com/.*$      [NC]
  5. RewriteCond %{HTTP_REFERER} !^https://domain.com$      [NC]
  6. RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]