Quantcast
Image

Search Results for: disable-directory-listing

How to disable directory listing in cPanel

By  •  November 28, 2023

Websites hosted in cPanel by default are configured to display the index of a directory whenever DirectoryIndex files such as index.html or index.php are not present. This is due …
Read More

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