cPanel’s Indexes tool controls whether visitors can see a directory listing when that directory has no recognised index page. Disabling listings helps avoid exposing a convenient list of website files.
Change a directory’s listing setting
- Sign in to cPanel and open Advanced > Indexes.
- Browse to the intended directory and select Edit.
- Choose the appropriate option:
- Inherit uses the parent directory’s setting.
- No Indexing prevents a generated directory listing.
- Show Filename Only lists filenames.
- Show Filename and Description provides a more detailed listing.
- Select Save.
- Test the directory address in your browser.
Understand what the setting protects
If an index page exists, the server may display that page instead of a listing. Otherwise, the result depends on the directory and server configuration.
No Indexing does not block requests for individual files whose addresses are known. Keep private backups and credentials outside the document root, and use access restrictions where files must be protected.