How to disable directory listing with htaccess

To prevent  file and directory listing, you can add just one line to the htaccess file:

Options-Indexes

If you don't have this htaccess file, just create it in the root directory of your site. If the file already exists - do not delete anything in it - just add this line from a new line and save.

Comments

No comments yet, you can leave yours: