I have a series of sites that consists of a (1) public site, (2) administrative CMS and (3) image repository.
This question is specific to the image repository.
I want to access any images from any subdomain within a specific domain, but no more.
For example, if the domains for the above sites are:
- www.foo.com
- cms.foo.com
- images.foo.com
I would want to access the images from any domain and subdomain under foo.com,but I want linking from any other domain to fail.
As an additional issue, I would also like to add secondary domains that are allowed to link under the same rules (e.g. acmecorp.com would also be allowed to link).
P.S. In images.foo.com there are only JPG files. There are no PHP pages, so I would need to do this at the IIS7/web.config level.
Thank you.