Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- selective hotlink prevention
October 4, 2005, 7:24 pm
rate this thread
There's one website that repeatedly hotlinks to my images; in the past 3
days it's gotten 541 hits from their websitek (Imagine what that number will
be by end of month.)
I'd like to block that site (but not all sites) from linking to my images.
Is there a way?
Re: selective hotlink prevention
to follow up:
I found this code online & put it in my .htaccess file. But it doesn't work;
it also blocks some images from my own site!
What am I doing wrong?
RewriteCond % ^http://(www\.)?badsite.com.*$ [NC,OR]
RewriteRule \.(gif|jpg)$ http://www.mywebsite.com/images/hotlink.gif[R,L]
Also, is there a way that folks can just get an error rather than a 404 or a
redirect to an alternate image?
- » css- 2 boxes, one=200px, second=(100%-200px)- how?
- — Previous thread in » HTML Markup Language