Thursday, 19 September 2013

hotlink prevention for images on subdomain not working

hotlink prevention for images on subdomain not working

I currently am rewriting image requests to my site and redirecting them to
my sub-domain which handles all the images.
what I want to do is prevent one site from hot-linking those images. I've
already implemented,
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?bannedsite\.com/ [NC]
RewriteRule \.(jpg|gif|bmp|png|JPE?G)$ - [F]
and this works for images on my main domain, But fails for the sub-domain.
Any info would be awesome. Thanks.

No comments:

Post a Comment