What is Indexes
The Indexes tool in cPanel controls how your website's folders are displayed when they do not contain an index file (such as index.html or index.php).
If there is no index file, the web server may display a list of all files and folders, which is usually undesirable for security and aesthetic reasons.
With the Indexes tool you can choose whether this list is displayed or whether the visitor sees a “403 Forbidden” message.
Why it matters
Disabling indexes prevents unwanted access by visitors or bots to directories that have no navigation pages.
If a folder contains images, scripts or backup files, listing them publicly may reveal sensitive information or allow malicious use.
Konet recommends always choosing to disable indexes (No Indexing) for all folders, unless there is a specific reason to display them.
How to configure Indexes in cPanel
-
Go to the Advanced section and select Indexes.
-
Find the folder you want to configure.
-
Click Edit.
-
Choose one of the following options:
-
Default System Setting: Uses the server setting.
-
No Indexing: Does not display the folder contents.
-
Show Filename Only: Displays a list of files without details.
-
Show Filename and Description: Displays a detailed list with dates and sizes.
-
-
Click Save.
The change applies immediately and affects all subfolders that do not have their own setting.
Konet's recommended setting
The safest option is No Indexing, so that no folder without an index file displays its contents.
This prevents third parties from seeing backup files, configuration files or temporary uploads.
If you want to lock a folder completely with a password, see the guide cPanel Directory Privacy.
Frequently asked questions
If I have an index.php, do I need to configure Indexes?
No, the index file takes priority and the folder will not display the file list.
How do I know if Indexes are enabled?
If you type the address of a folder (e.g. mydomain.gr/images/) and see a list of files, then it is enabled.
Can I set one setting for all folders at once?
Yes, if you set No Indexing on public_html, it applies to all subfolders unless they have a different setting.
Useful links
Conclusion
The Indexes tool in cPanel gives you control over how your website's folders are displayed.
Using it correctly strengthens security, prevents files from being exposed and helps keep your site looking professional.
Konet recommends keeping the “No Indexing” option enabled on all folders for maximum protection.