Hi there,
I searched and couldn't find anything that met my specific situation. I am using the following to block hotlinking to my site:
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain\.[NC]
RewriteRule \.(zip|gif|png|swf|flv|jpe?g $ - [F]
Recently I setup a subdomain pointer cdn.domain pointing toward my root directory so I can serve images, etc. in parallel to speed up page load times. I also have other subdomains on the site.
When I check external hotlinking from [
cdn.domain.com...] it allows images thru.
How can I alter the code to allow hotlinking from internal subdomains and block cdn.domain to the outside world?