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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How can I get a full backup of my account?

1.  Log into cPanel and click on the "Backups" link under the Files section. 2.  On the next...

How can I password protect a directory?

1.  Log into your cPanel and click on the "Password Protect Directories" link under the...

How can I stop people from hotlinking to my site?

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

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 it in...

How can I backup my files?

1.  Log into cPanel and click on the "Backups" link under the Files section 2.  Under the...