In this article, we will explain two different methods for disabling directory listing in cPanel.
Check out the First Method:
- Log into your “cPanel Account.”
- Search for the ‘Advanced’ option, and click on the ‘Indexes’ sub-option.
- Select the “Directory”, and click on “EDIT.”
- A new window will appear, that will allow you to select the ‘No Indexing’ option to disable the directory listing. You will see four types of indexing methods.
- Inhert: This option is configured as the default by the hosting provider.
- No Indexing: This option allows you to disable directory listing. The primary purpose behind disabling directory listing is to enhance privacy and reduce the vulnerability of files to potential attacks.
- Show Filename Only: Selecting this option will activate the directory listing, allowing users to view the names of the directories.
- Show Filename and Description: Enabling this option will activate directory listing, allowing users to view both the names and descriptions of the files and directories within your indexed directory.
- Click on “Save.”
Let’s check the second Method:
- Log into your “cPanel Account.”
- Click ‘File Manager’ from the ‘Files’ Tools.
- Select any directory, right-click, and click “Manage Indices.”
- Select “No Indexing” option and click on “Save.”
In these 2 different ways, you can disable any directory listing in cPanel. If you require any additional assistance, please don’t hesitate to reach out to our support department.