Thread: Major Hotlinker
View Single Post
Old 2004-07-27, 12:46 AM   #13
Monkey Spanker
Just because I don't care doesn't mean I don't understand!
 
Monkey Spanker's Avatar
 
Join Date: Jun 2004
Location: Florida
Posts: 97
Send a message via ICQ to Monkey Spanker
You should be able to set up hotlink protection on your CPanel. It is easier than dealing with htaccess because you just plug in domains that are allowed to hotlink and blocks the rest.

There is a way to redirect hotlinkers and still allow 'blank referrers' which will allow surfers with a firewall up to still see images and allows people to type in URLs that link directly to images without hotlinking. Here is what the htaccess should look like:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourotherdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yetanotherdomain.com.*$ [NC]
RewriteRule ^.+\.(jpg|jpeg|png|gif|bmp)$ http://www.yourdomain.com/randomimage.jpg [R,L]

There is a great new site a guy I know just started that gives you all the htaccess code you need and he is an htaccess wizard. I hope this isn't considered spam because it is a free service. Check it out! htaccesstools
__________________
PROUD MEMBER OF

ADULT NETWORK
Monkey Spanker is offline   Reply With Quote