Reputation: 2425
I am working on a CI Application.
Now I Have a folder in my project called base_ini, in which I have some config files. I want to secure this file, so no can can view its content directly from browser.
So I tried this two ways:
If I pass this in URl : www.example.com/base_ini I do get proper error message. But still if from browser I pass this path www.example.com/base_ini/default.ini then I can view its content.
How can I stop this access?
Upvotes: 2
Views: 2760
Reputation: 180
Put below line in your htaccess file and put that file at www.example.com/base_ini/ (path)
Options -Indexes
Upvotes: 3