🍁 Autumn Sale — Up to 70% discount for hosting and domains
activate now
Frequently Asked Questions • Dev

What is Index of and how do I disable the automatic display of a directory's contents?

Discover in the passage below what Index of is and how to disable the automatic display of a directory's contents.

1
Views 1258Updated 7 aniPublished on 16/01/2019by Florin P.

If a link points to a directory that does not have an index file set (e.g., index.html, default.html, etc.), then the content of that directory will be displayed. Example of display:

To disable the automatic display of directory content, we will create the .htaccess file in the respective directory, a file in which we will add the following line: Options -Indexes

Note: This solution is only valid for the Apache web server. Other web servers operate with different directives and configuration files.

 

Similar Articles

Views 1,258
Updated 7 years ago

Discover in the passage below what Index of is and how to disable the automatic display of a directory's contents.

Views 977
Updated 6 years ago

Find out what DirectoryIndex is and how it configures the indexing of web pages on Apache servers, offering options for users and default settings.

Views 3,092
Updated 2 years ago

In this article, we will explain what a Content Management System (CMS) is and which are the most popular content management systems.