Hotlinking image exception?

Status
Not open for further replies.

WyrGecko

New Member
Messages
93
Reaction score
0
Points
0
Hotlinking protection is enabled and working fine. :)

I was thinking of hosting an image via x10 as part of a "link to us" type of thing. Would that be allowed?

If it is, is it possible to add an exception for that specific file using RewriteCond, or is that just for allowing directories? I'm not sure what the syntax for a file would be.

Thanks.
 
Last edited:

tittat

Active Member
Messages
2,478
Reaction score
1
Points
38
If your images are located within the influence of your hotlink-protection rules, and you need to enable hotlinking for a specific directory, it is possible to circumvent the anti-hotlink rewriting for that directory. In the htaccess file for the target directory, add the following, pseudo-rewrite rules

# disable hotlink protection
RewriteEngine on
RewriteRule ^.*$ -


I would recommend you to read this tutorial
http://perishablepress.com/press/2007/11/28/three-ways-to-allow-hotlinking-in-specific-directories/
 
Status
Not open for further replies.
Top