Hotlinking Thief
-
My site is currently being copied by a thieving b*stard on Blogger. A quick hunt for solutions turned up this damned useful snippet of code from Scriptygoddess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://tamba2.org.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.tamba2.org.uk/.*$ [NC]
ReWriteRule .*.(png|gif|jpg)$ - [N,F,L]You may need these two lines at the top of that:
Options +FollowSymlinks
Options +SymlinksIfOwnerMatchReplace your domain name where mine is.
Save this as .htaccess
Upload to your images directory
Put one in each image directory if you have several.There are many ways of blocking this sort of crap, but this works and it’s quick. It’s not going to harm to drop this code in anyway.
ScriptyGoddess Link:
https://www.scriptygoddess.com/archives/2002/05/07/protect-your-images-with-htaccess/
- The topic ‘Hotlinking Thief’ is closed to new replies.