Copy link to clipboard
Copied
I'm loading data into a Flash application via XML, which is in the same directory as the swf file on the server, and would like to prevent the XML from being viewed in a browser. I was assuming I could set the XML's permissions to allow Owner and Group read and prevent Others from reading (UNIX 770), but when I do that the XML won't load.
I thought about using an .htaccess file but I don't want a password dialog to pop up when the swf requests the XML. Is there a way of doing this via permissions?
Copy link to clipboard
Copied
i don't think there's any easy way to restrict access to static files.
i think the easiest way, if you have a database on your server, is to store your xml file in your database.