prevent hotlinking

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I want to prevent other sites hotlinking to images on my site which
appears as the urls:

I have added the following lines to.htacces
RewriteEngine On
RewriteCond % ^http://(.+\.)?twinisles\.com/ [NC,OR]
RewriteCond % ^http://(.+\.)?japandesu\.com/ [NC,OR]
RewriteCond % ^http://(.+\.)?japan.twinisles\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]

However when I test it on sites such as
the images still appear.

What am I doing wrong?

Re: prevent hotlinking

On 30 May 2007 17:46:27 -0700  said
Quoted text here. Click to load it

You are permitting _only_ hotlinks. You need to negate the conditions (put
! before the pattern) and remove the ORs.



Re: prevent hotlinking

On 31 May, 01:46, wrote:
Quoted text here. Click to load it

Since the site you mention is specifically designed to demonstrate
leeching, the people who developed it have probably planned for such a
trivial prophylaxis. Also, if you're serious about protecting your
site you should learn how to capture protcol level wiretaps and how to
understand them.


Site Timeline