• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hide Loaded XML file

Community Expert ,
Oct 07, 2009 Oct 07, 2009

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?

TOPICS
ActionScript

Views

438

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 07, 2009 Oct 07, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines