If a folder has no index file, the server can show a list of all its files. This makes it easier for attackers to find backups, configuration files and documents. On our hosting, file lists are already switched off for the public_html folder, but you can check and set this for each folder.
Log in to cPanel – see the article “1.2. Logging in to cPanel”.
Options
| Setting | Meaning |
|---|---|
| Inherit | Uses the setting of the parent folder |
| No Indexing | No file list is shown – recommended |
| Show Filename Only | Shows file names only |
| Show Filename and Description | Shows files with their size and type |
1Set it for a folder
In the “Advanced” section of cPanel, open “Indexes”. Click “EDIT” next to the folder, choose “No Indexing” and click “Save”.

- Turn on file lists only for a folder whose files you deliberately want to publish (for example downloads).
- Even with “No Indexing”, files are accessible if someone knows their exact address – do not keep secret files in public_html (see the article “What is the public_html folder”).
If you run into any difficulties, just write to us and we will help. support@area.lv