Knowledge Base Article

How to prevent directory listing?

By default, if you don't have an index file in a web accessible folder, when accessed through a browser, its contents will be listed.

 

To prevent the listing of the folder's contents, you should add the following line to the .htaccess file in the folder (if there is no .htaccess file, you can easily create a new one):

 

Options -Indexes



Rating

Please indicate if this article was helpful for you.

rating :  4.9 from 5
views :  1405
votes :  10

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!