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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:45:01+00:00 2026-06-16T06:45:01+00:00

Not sure how to better phrase the title. We have an iOS game which

  • 0

Not sure how to better phrase the title.

We have an iOS game which connects with a MySQL database on our VPS via PHP. Now we don’t know a great deal about the server side of things, so we got it all working, the game is released and people are able to update their scores etc.

The problem is that the only way we were able to get it all to work was to put our game directory into our public_html directory. This means that if anyone types http://www.ourwebsitename/gamefoldername into a browser they get the index of that folder. If you click one of the folders in there, it actually returns a table with all of the data in our database, which is obviously not secure.

Is there a way to make this directory private, and if so how would this affect our app when it tries to connect to the server?

  • 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-16T06:45:02+00:00Added an answer on June 16, 2026 at 6:45 am

    There are alots of way to prevent this :

    Some are below.

    1) Put a index.php in this and every folder http://www.ourwebsitename/gamefoldername and this file should redirect the user who provide this url to main/login page. This is simple but not a great way.

    2) Use . ht access file http://www.htaccess-guide.com/redirects/ . Please get details from here.

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

Sidebar

Related Questions

i'm not sure how i could have phrased the title better, but my issue
Sorry about terrible title, not sure of a better one. Here's a gross simplification
Not sure if the title is worded correctly, or if there is a better
Sorry for the confusing title but I'm not sure how better to explain it.
I'm not sure how to better phrase this question so it's possible I missed
I am not sure if this fits better on StackOverflow, but here goes: I
Caveat : I'm not sure if this post might be better suited for SuperUser
Ok I'm working on getting better with python, so I'm not sure this is
I am not really sure what this method does, or better I am not
Ajax seems to give a better user experience, but I'm not so sure if

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.