Reputation: 2039
I want to deny permission of visitors to access http://example.com/xml_folder/xml_file1.xml and any other .xml file in the xml_folder. I can do that easily modifying folder permisions. The problem is that I also have a small flash on my website that needs to access those .xml files and once I remove "read" from "Public permissions" the flash can't access the files either (which I think is pretty normal).
So .. my question is: how do I restrict visitors to access the .xml files but not the flash.swf file ? Btw, it's running on a linux vps.
Upvotes: 0
Views: 168
Reputation: 71
Try hosting a password-protected HTTPS virtual server with just the XML files. Use the username and password in the flash (This flash code must hide the user name and password as well). I'm not familiar with flash programming. But I hope you get the idea.
Upvotes: 1
Reputation: 86774
This is not possible. If Flash can retrieve the file then so can a user who watches with FireBug and captures the URL.
Upvotes: 1