You are here: Portal Home > Knowledgebase > Other > How do I disable directory listings? Please Login or Register

How do I disable directory listings?

If you dont have an index file in every directory the contents of the directories are open for viewing. This can be a serious security issue.

1. First log in to your Cpanel

2. Click "File Manager"

3. Choose the directory that the .htaccess file is in by clicking on the file icon

4. Select the.htaccess file

5. Click "Edit File" in the middle of the menu bar

6. Then just type the following into your .htaccess file in the public html directory.

"Options -Indexes"

Was this answer helpful?

Add to Favourites
Print this Article

Powered by WHMCompleteSolution

Pro Host Management