You are here: Re: prevent hotlinking « HTML « IT news, forums, messages
Re: prevent hotlinking

Posted by sig on 05/31/07 15:43

On 30 May 2007 17:46:27 -0700 said
> 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?

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

Sig

--
http://koiclubsandiego.org/comment/?r=8
dee1d312e3b3a21a1e08bf2aea1273bb

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация