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

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

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 do I park a domain?

1.  Log into your cPanel and click on the Parked Domains link under the Domains section. 2....

How do I create an Addon domain?

  1.  Log into your cPanel and click on the Addon Domains link under the Domains section. 2....

How do I create a subdomain?

1.  Log into your cPanel and click the "Subdomains" link under the Domains section. 2.  On...

How do I create a redirect?

  1.  Log into your cPanel and click on the "Redirects" link under the Domains section. 2....