Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   Can I or should I block hotlinking? (http://www.greenguysboard.com/board/showthread.php?t=55327)

mark6188 2009-11-14 05:45 PM

Can I or should I block hotlinking?
 
It's finally happened. Some forums are hotlinking my images with no link back to my site.

I think I can figure out blocking hotlinking with htaccess.

However, will this affect my free site and tgp submits? Do legitimate link list and tgp owners hotlink my images instead of directing to my domain?

I want to nip this bandwidth theft in the butt, before it starts costing me.

cd34 2009-11-14 05:55 PM

You make $0 from the other sites hotlinking your images.

http://www.greenguysboard.com/board/...em#faq_hotlink was developed a few years back and still holds up pretty well.

Code:

RewriteEngine on
# leave this line in allow empty referrers, remove to disallow empty referrers
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)?yourdomain\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

The 1.2.3.4 should be replaced with your IP address if you want -- or, you can remove that line entirely. Nowadays, it probably doesn't matter much to have that line there. Allowing the Empty referrer is probably good because a lot of privacy software tends to blank the referrer line. However, if you are being heavily hotlinked, you might disable that since some of the forum surfers won't be sending referrers specifically because they know most rules will allow the image to be hotlinked with referrers turned off.

hashbury 2009-11-14 07:31 PM

The only tgp or linklist that i know of that hotlinks to your benefit is pichunter.

Cleo 2009-11-14 09:02 PM

I let Google and a few other places hotlink like this board so that I can have an image in my sig but that's about it.

Sparky's htaccess file is the best I've ever seen. :)

mark6188 2009-11-14 11:19 PM

Thanks for all the responses. I'll start working on this.

cd34 2009-11-14 11:41 PM

Quote:

Originally Posted by Cleo (Post 469673)
Sparky's htaccess file is the best I've ever seen. :)

That is actually the one that Raymor developed.

Max@PuZcash.com 2009-11-24 10:05 AM

can somebody pls tell me why allowing google to hotlink makes sense? I mean, I did this before too but I see pics from domains that dissalow hotlinking in general (SE too) in the google image search results normally. Where exactly does google or other SE hotlink? Example?

Max@PuZcash.com 2009-11-28 08:12 AM

nobody? I am really curious, just checked some domains of mine again that have hotlinking disabled for all sites besides my own and I can find images normally in the google image search

srhcom 2009-11-29 06:52 PM

Google Cache hotlinks images, I don't know of anything else. GIS doesn't hotlink.

Max@PuZcash.com 2009-12-01 07:12 AM

so what can I expect to happen when google cache can't hotlink my images? Anybody know?

thefandango 2009-12-01 07:33 AM

Your images can appear in google image searches, not good if its a private site.


All times are GMT -4. The time now is 09:06 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc