Search the CLDY knowledge base

Updated on August 20, 2022

How to Disable Directory Listing using .htaccess?

For most web servers, by default when there are no index.html index.php files, it will show the entire Directory Listing.

To prevent or deny the listing of the folders and files, you can add 1 line into .htaccess of your root directory.

Options -Indexes

Note: If you are hosted with CLDY Web Hosting or VPS, you do not need to do the above, for your safety, it is disabled by default on all our servers.

Still can't find what you're looking for?