Quantcast
Image

Search Results for: disable-apache-directory-listing-using-htaccess

How to disable directory listing in Apache

By  •  November 28, 2023

If no DirectoryIndex (normally configured as index.html, index.htm, index.php, welcome.html) present in a directory, and if mod_autoindex is enabled (which by default is normally enabled), Apache would list the directory contents, as the following;

While useful for some cases, you would want to disable this feature (perhaps for security reason). There are few ways to do this.

Top