There was a problem loading the comments.

How do I disable directory listings?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
 

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

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

CAPTCHA

On-Premise Help Desk Software by SupportPal
© Eleven2.com