Log in

View Full Version : How to stop hotlinkers?


The Cucumber
2005-12-02, 08:57 PM
Is there a way to secure a gallery from hotlinkers?
I noticed some of my pics on galleries I got have been hotlinked, is there a proggy to prevent this?

Roni20
2005-12-02, 09:08 PM
htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !domain.com [NC]
RewriteRule \.(gif|jpg|png|etc)$ - [F]


it's the easiest way i think.

Halfdeck
2005-12-02, 09:09 PM
Roni's code looks fine. For more options, try these posts:

http://www.greenguysboard.com/board/search.php?searchid=249105

weirdharold
2005-12-02, 11:13 PM
Halfdeck, you might be better simply giving the keywords to search... because that link leads to a message saying Sorry - no matches. Please try some different terms.

Halfdeck
2005-12-02, 11:31 PM
Strange. Well, you can try running a search for something along the lines of "hotlink rewritecond."

Lemmy
2005-12-03, 06:14 AM
Or you can try hitting the FAQ button. :)

pvtspanky
2005-12-03, 05:46 PM
Make sure you block sites that have the word "fusker" in the domain |thumb

The Cucumber
2005-12-05, 06:28 PM
Thanks guys, I'm gonna test that code right away |thumb