Hello, my friends, I am a beginner here on the Stack Overflow and beginner in programming flight of 04 grandchildren 54 years. What configuration to do in .htaccess to protect directories, folders, files and DB from browser access. Thankful.
Hello, my friends, I am a beginner here on the Stack Overflow and beginner in programming flight of 04 grandchildren 54 years. What configuration to do in .htaccess to protect directories, folders, files and DB from browser access. Thankful.
The option you are looking for is this:
Options -Indexes
You can direct it to .htaccess
(if this override is enabled in Apache
).
Configuration example with Directory
, instead of .htaccess
:
<Directory /caminho>
Options -Indexes
</Directory>
Documentation (en):
Useful Link: