When a visitor opens a folder on your site without a home page inside it, the server may show a list of every file in that folder. This is called a directory listing. It can expose files you never meant to publish, such as old backups, log files, or drafts.
Index Manager lets you decide what visitors see when they open a folder without an index page.
Open Index Manager
- Log in to cPanel.
- In the Advanced group, click Index Manager.

Choose a Domain or Folder
Select the domain or folder you want to change from the list. Each folder can have its own setting, so you can protect one area without changing the rest of the site.

Pick an Indexing Option
The options generally fall into three groups.
- Default system setting, which leaves the server to decide.
- No Indexing, which hides the folder listing and shows a blank page or an access message.
- Standard or Fancy listings, which show the files in the folder.
For most folders on a live site, choose No Indexing. This keeps the file list private.

Save and Test
Click Save, then open the folder in a private browser window. The file list should no longer appear. If the folder has an index.html or index.php file, visitors will see that page instead, which is the normal behavior.
Protect Files, Not Just Lists
Hiding the folder list does not hide the files themselves. Anyone who knows a file’s exact name can still open it. Move private files out of public_html, or use Directory Privacy, covered on Day 10, to add a password.
Need a clear plan for keeping private files private? HoganHost’s cPanel hosting gives you the tools to organize your site safely.



