Preventing directory listings is very simple and pretty useful. It’s 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 disabling of 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.
- Click Save.
Please feel free to get in touch if you have any questions (open a ticket) with our hosting department – we will try to get back to you as soon as we can!