Knowledgebase
How do I disable directory listings?
Posted by - NA - on 01 January 1970 12:00 AM
 

If you don’t 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
(4 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: