GICT knowledge base
How to Disable Directory Listing in cPanel
Published
You can customize the directory settings of a website. By default, cPanel lists all the files and directories of the website. You can also disable directory listing of the website by choosing No indexes.
Method1
1) Login to your cPanel interface.
2) Click the icon ‘Indexes’ under ‘ADVANCED’ category.
3) Select the directory for which you want to change the index settings.
4) A new window will open and here you can click ‘No Indexing’ option to disable directory listing.
Here you can see four types of indexing methods.
Default System Indexing: This is the default option set by a hosting provider.
No Indexing: This option allows to disable directory listing. The main reason to disable directory listing is to enable privacy in order to reduce the chances of the files being attacked.
Standard Indexing: This option will enable the directory listing. The user can see the name of the directories.
Fancy Indexing: This option will enable the directory listing. The user can see the name and description of the files and directories under your indexed directory.
5) Click Save.
Method 2
1) Login to your cPanel interface.
2) Click ‘File manager’ icon from the ‘FILES’ category.
3) Select the folder for which you want to disable directory listing.
4) Right click the folder and click ‘Change Permissions’ option to set the permission of that folder.
5) Assign permission as “771”. This means that the folder can’t be accessible by users or visitors it can only be accessible to the owners and it’s groups.
6) Click ‘Change Permissions’ to save the changes.
Method 3
1) Login to your cPanel interface.
2) Click ‘File manager’ icon from the ‘FILES’ category.
3) Select and right click the folder which you want to disable directory listing.
4) Click ‘Manage Indices’ option.
5) Click the option ‘No Indexing’
6) Click ‘Save’.
If you need any further assistance please contact our support department.
Related guides
Host Additional Domains on an Eligible InterServer Account
Check your hosting limits, choose a separate site or alias and use cPanel or DirectAdmin with deliberate DNS, content and certificate verification.
cPanelHardening Your cPanel Server: Beyond the Basics After CVE-2026-41940
Security is a moving target. With the recent discovery of CVE-2026-41940, it has become clear that just having a firewall isn't enough anymore.
cPanelcPanel and Plesk notice: Awstats,. Webalizer and Analog stats are being removed
Important Update: cPanel and Plesk Phasing Out Legacy Statistics Tools If you regularly check your website traffic through your hosting control panel, we have an...
cPanelThe dangers of shared licenses (in other words unofficial/cracked licenses)
Why Cracked cPanel Licenses Aren’t Worth the Risk: A Guide for InterServer Customers When you’re managing a server, every dollar counts.








