We need to deploy crossdomain.xml on our webserver, but the host name remains same across different websites,
How can we add restrictions at sub-directoty level (website1)?
the URLs are like below, now how can I add restriction to have only for website1?
<!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="www.mytest.com" secure="false" />
<allow-access-from domain="mytest.com" secure="false" />
Theoretically if you want to control subdirectories - you need to place crossdomain.xml into the topmost directory you want to protect. In your case it may be:
With that said, Flash will strill attempt to load xml from the root - you need to load policy explicitly: