Page tree
Skip to end of metadata
Go to start of metadata

This article contains information about hiding the index directory page.

Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, a full listing of all the files in that directory will be shown. This could be a security risk for your site.

To prevent this without creating new index files, you can enter this simple command into your .htaccess file to stop the directory list from being shown:

Options -Indexes

 

This is enabled by default on all our our shared servers.

There is no content with the specified labels