.htaccess file settings

1

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.

    
asked by anonymous 24.10.2017 / 00:09

1 answer

0

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):

  

link

Useful Link:

  

20 extremely useful tips and tricks from .htaccess

    
24.10.2017 / 12:25