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 8622893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:09:35+00:00 2026-06-12T07:09:35+00:00

I have a flash app on my website that calls certain php scripts on

  • 0

I have a flash app on my website that calls certain php scripts on the server.

For example, I have a script that gets all items owned by the user of my flash game. The script returns a JSON encoded response consisting of a return code and a return message (the message in this case is an array of items). I call the php script from actionscript as follows:

var urlReq:URLRequest = new URLRequest("mysite.com/getItems.php");
urlReq.method = URLRequestMethod.GET;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, onResponse);
loader.addEventListener(IOErrorEvent.IO_ERROR, networkError);
loader.load(urlReq);        

However, one could also easily just navigate to mysite.com/getItems.php in their browser and they would see, providing they had an alive session, the JSON response right there in the browser. It makes me fairly uncomfortable considering it shows the format of my underlining transfer protocol.

Is there any way of ‘hiding’ my php scripts from direct browser access, whilst still having the script available when called from actionscript.

  • 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-12T07:09:36+00:00Added an answer on June 12, 2026 at 7:09 am

    An easy way to do this would be to include a key as a GET parameter for the request in your app. Then in the php page, you only output the JSON if the value of $_GET['key'] is valid.

    Someone watching the traffic of your app would be able to extract this and use it in their browser for direct access, but a user advanced enough for that is likely to already see your JSON in their view of the app’s traffic.

    You could extend things further and check the various client information reported to PHP via get_browser() or $_SERVER['HTTP_USER_AGENT'] but, once again, a skilled user would be able to overcome this check.

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

Sidebar

Related Questions

For my website, i'm using a flash app to allow some stuff that php
All, In the Flash app I'm building, I have a main SWF that will
I have a flash app hosted at www.example.com that is trying to pull in
I have a flash app that plays movies. It loads subtitles and subtitle times
I have a Flash app with a PHP backend. Whenever there is a PHP
I have a flex 4.5 php app that runs perfectly on localhost. When I
I have a Flex app that uploads files to our website. We're currently working
I have a Flash app that I'm looking to port into HTML5. The app
I have a flash 8 app that's reading an XML file. In the file
I have a flash app that is going to be run in full screen

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.