How to disable directory listing with htaccess

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


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.


No comments yet, you can leave yours: