Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8317209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:32:28+00:00 2026-06-08T21:32:28+00:00

I have managed to create an AS3 script that uses file.download(urlRequest); – this is

  • 0

I have managed to create an AS3 script that uses file.download(urlRequest); – this is working fine when referencing a location that is web accessible. Is it possible to get flash to reference a location on the server it resides? I want to make the files it has access to downloading as secure as possible.

I realise that I can reference a PHP file in the AS3 to initiate the download but this isn’t working when using a browser window within a Silverlight application so need the flash to do the downloading if possible.

Any help is highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:32:29+00:00Added an answer on June 8, 2026 at 9:32 pm

    Perhaps use an htaccess rule on the server? If the request originates from a different host / server then respond with a 403 error. If the request is from the same host / server then download the file?

    For example:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^www.your-site.com [NC]
    RewriteRule .* - [F]
    

    This is not the most secure method of preventing access, as referrer headers can be spoofed or disabled in browsers.

    Another idea:

    The url for the file is pushed through a php script. If the ip address of the request is not in the database, then do not allow the file to be downloaded. Use your flash to post a request to the server with an ip address (the server adds the ip to a whitelist in a database), then perform your file.download(urlRequest)?

    Again not the most secure as someone could post their ip, spoof their referrer header and THEN get the files…

    Still, better than nothing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With help from @Joseph I have managed to create this script that works exactly
I seem to have managed to create a branch that does not stem from
Looking at the samples that come with EPPlus I have managed to create the
I need help with a git issue. I have managed to create a file
I have managed to create the Excel file using HTMLTextwriter, but the returned file
Following this tutorial http://netbeans.org/kb/docs/javaee/maven-osgiservice-cdi.html I have managed to create a simple OSGI bundle and
I have managed to create a custom action in C# using MakeSfxCA which is
I have managed to create a simple app which deletes (bypassing the recycle bin)
I have used this code in my AS3 document class to remove all objects
I am new to jQuery and have managed to create a tabbed interface with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.