This is useful if you have a big list of files in a directory with no index file and you don’t want visitors to be able to browse through all of those.
How to Disable Directory Browsing #
Just add the following line in the site’s .htaccess file located in the root directory of your website.
Options -Indexes
If you are a Tarweig customer, we have you covered. By default, the directory listing is disabled on our servers.