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

  • Home
  • SEARCH
  • 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 3871492
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:49:45+00:00 2026-05-19T21:49:45+00:00

I am currently developing a PUBLIC and OPEN SOURCE software using PHP/MySQL. I have

  • 0

I am currently developing a PUBLIC and OPEN SOURCE software using PHP/MySQL. I have a couple of important SECRET TXT files in a folder. I use them in the software, but problem is that they are also readable by anyone who knows folder and file names:

 secret_folder \ my_data.txt

I need to hide them against everyone who might be trying to get secret data without permission. I found this way (keeping all secret folders under a unique folder):

 U3IPpe8J_2573HkBfR0iYteH8X \ secret_folder \ my_data.txt

Unique key will be changing for each website (remember that the software will be open source and public).

Is it good enough for security, or should I use HTACCESS as well? If yes, how can I use it; or do you have any better idea?

  • 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-05-19T21:49:45+00:00Added an answer on May 19, 2026 at 9:49 pm

    Remember, Security Through Obscurity Is Not Security. So no, it’s not good enough.

    Add a deny rule in .htaccess for the secret_folder and be done.

    So, your .htaccess would include:

    <Directory /secret_folder>
        order allow,deny
        deny from all
    <Directory>
    

    Even better still would be to move secret_folder above the web root (so it’s not served at all).

    /public_html/index.php
    /secret_folder/my_data.txt
    

    That way it’s literally impossible for anyone to request my_data.txt through Apache (they could if they hacked PHP code, but not directly through the web server).

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

Sidebar

Related Questions

I'm currently developing (another) Open Source CMS in PHP and I'd like to use
i have been recently studying php and mysql and also is currently developing a
I'm currently developing a PHP application that's using an Access database as a backend.
I was currently developing a desktop application in C# using mono and testing in
I am currently developing a Rails application using a database that was designed before
We're currently developing a new piece of hand-held software. I cant discuss the nature
We're developing a large desktop application using Windows Presentation Foundation. Currently, the application is
I'm currently developing my own AuthorizationManager, it looks something like that: public class MyAuthorizationManager
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I'm currently developing an application in which I'm using a plugin system. For providing

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.