How do I disable directory listings?

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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I enable AutoSSL on my account?

AutoSSL is enabled on all of our current shared hosting accouts by default; however, if you have...

How can I view my current disk usage?

Log into cPanel and click on the "Disk Usage" link under the Files section. Next you will be...

How can I view my web statistics?

Log into your cPanel and click on the link "Awstats" under the Logs section. Select the domain...

How can I take a backup of the entire account from cPanel and save it in my machine?

Please follow the steps below  to take a backup of the entire account from cPanel and save...

How can I stop people from hotlinking to my site?

Log into you cPanel and click on the "Hotlink Protection" link under the Security section. On...