Web Hosting Threads - The Ultimate Hosting Forum  




Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
freaks
Member
 
Posts: 61
Join Date: Nov 2005
Default Stop Hotlinking in Cpanel? - 11-17-2005 , 08:20 AM


Hi,

There is a feature in CPanel which, when activated, will protect against hotlinking by letting you specify which websites can use your files.

I am wondering if there is a way to make it work the opposite way...I want to specify certain websites which cannot use my files.

Any ideas? This can be through CPanel or anything else.

freaks

Reply With Quote
  #2  
Old   
toxic
Junior Member
 
Posts: 3
Join Date: Nov 2005
Default 11-17-2005 , 08:54 AM


Hello,

You may try to edit the .htaccess file in the home directory of your hosting account. For example, to stop BandDomain1.com, BandDomain2.com and bandDomain3.com to hotlinking your files:

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?BandDomain1\.com/ [NC,OR
RewriteCond %{HTTP_REFERER} ^http://(www\.)?BandDomain2\.com/ [NC,OR
RewriteCond %{HTTP_REFERER} ^http://(www\.)?BandDomain2\.com/ [NC

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Powered by: WebHostingThreads