Preventing directory listings is very simple and pretty useful. Its useful when, for example, you have any sort of directory containing images or '.zip' archive files. Alternatively you can enable directory listings, to do either of these please follow the steps below.
- Log into CPanel
- Click on indexes, This will be located under advanced features
- Select the directory on which you like to change the index setting - For example public_html
- 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 (We default to no indexing).
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.
If you should have any issues or have any questions regarding this topic please contact us via a support ticket (open a ticket) with our hosting department and we will get back to you as soon as possible.