Hotlink protection turned off for a particular directory?

Soldato
Joined
26 Aug 2006
Posts
9,726
Location
62.156684,-49.781113
I've got hotlink protection turned on for my hosting, with only a few addresses allowed, such as here. However, it'd be nice to be able to have a directory that could be accessed by any site - the images probably wouldn't be worth hotlinking anyway.

Is there a way of doing this? The more I think about it, the more it's a limitation of cPanel? I suppose I could just allow hotlinking and watch my bandwidth...
 
Hotlink protection is most likely done with Rewrites in cPanel. The simplest way you can disable it on a per-directory basis is by placing a .htaccess file in the directory. Add the lines:

Code:
  <IfModule mod_rewrite.c>
    RewriteEngine Off
  </IfModule>

Note this will affect any sub-directories and stop any rewrite rules you have active in that directory.
 
Back
Top Bottom