How to Disable Directory Browsing in cPanel?

If there is no index file to display your website, it will show the directories and other files. This is not secure to display all the files and folders of the website. For security purpose, we will disable the Directory Browsing. Following are the steps to disable the Directory Browsing.

  1. Login to your cPanel.

  2. Click on the Indexes inside Advanced. It will display the Directory tree.



  3. Select Up One Level and click the domain to Disable the Directory of the entire Website.



  4. Tick on No Indexing and hit the Save Button.

This is it. Anyone try to access the files will get 403 Forbidden.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to change MySQL user password?

Steps to change MySQL user password from cPanel: Login to cPanel with provided credentials....

How to Disable AWSTATs From cPanel?

Please follow below mentioned steps to disable AWSTATS for website. Login to WHM and find Server...

How to create user and/or account level filtering from cPanel?

When you receive any Email on the server, you may need to discard some emails (i.e. spam mails),...

What is Hotlink Protection?

Hotlink protection prevents other websites from directly linking to your files (typically images)...

How to manage DNS records of a domain in cPanel?

cPanel/WHM is a hosting control panel for Linux users. It allows you to manage all general DNS...