Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:20 AM.


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