|
Home > Archive > Web Servers on Unix and Linux > May 2007 > prevent hotlinking
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
prevent hotlinking
|
|
| abracad_1999@yahoo.com 2007-05-31, 1:17 am |
| I want to prevent other sites hotlinking to images on my site which
appears as the urls:
japan.twinisles.com
japandesu.com
I have added the following lines to.htacces
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?twinisles\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?japandesu\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?japan.twinisles\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
However when I test it on sites such as http://www.free-webhosts.com/hotlinking-checker.php
the images still appear.
What am I doing wrong?
| |
|
| On 31 May, 01:46, abracad_1...@yahoo.com wrote:
> I want to prevent other sites hotlinking to images on my site which
> appears as the urls:
> japan.twinisles.com
> japandesu.com
>
> I have added the following lines to.htacces
> RewriteEngine On
> RewriteCond %{HTTP_REFERER} ^http://(.+\.)?twinisles\.com/ [NC,OR]
> RewriteCond %{HTTP_REFERER} ^http://(.+\.)?japandesu\.com/ [NC,OR]
> RewriteCond %{HTTP_REFERER} ^http://(.+\.)?japan.twinisles\.com/ [NC]
> RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
>
> However when I test it on sites such ashttp://www.free-webhosts.com/hotlinking-checker.php
> the images still appear.
>
> What am I doing wrong?
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.
C.
|
|
|
|
|