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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:00:20+00:00 2026-05-10T20:00:20+00:00

I have a .ini file with sensitive information in my php wab app. I

  • 0

I have a .ini file with sensitive information in my php wab app. I denied access to it using a .htaccess file:

<files my.ini>   order deny,allow   deny from all </files> 

I don’t have access to folders outside of htdocs, so I can’t move the .ini file out of browsable territory.

Is my solution safe?

  • 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. 2026-05-10T20:00:21+00:00Added an answer on May 10, 2026 at 8:00 pm

    The .htaccess will block access from the web. However, if you’re using a shared hosting environment, it might be possible for other users to access your ini. If its on a (virtual private) server and you’re the only user for that server you’re safe.

    In case of shared hosting it depends on server configuration. For more info read: PHP Security in a shared hosting environment

    You can temporarily install PHPShell and browse through the server filesystem to check if your server is vulnerable. (requires some commandline knowledge)

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

Sidebar

Related Questions

We have a custom php.ini and .htaccess file in the root of the web
I don't have access to global php.ini file since I am running my application
I don't know how php.ini was configured since I don't have access to it.
I have uncomment the following from the php.ini file ;extension=php_bz2.dll extension=php_curl.dll ;extension=php_dba.dll Also ,I
I have a .ini file the .ini: ;app ... [MSGS] title#0 = first title..
I have changed the php.ini file in the location (C:\xampp\apache\bin\php.ini) for Xampp and restart
i have a problem with php.ini file. i need to change current date and
In my php.ini file, I have included mbstring.internal_encoding = UTF-8 . (I have tried
I have some trouble reading from an ini file using boost program options. The
I have ini files that have comments in the but in one ini file

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.