How to Disable Directory Listing in cPanel

By default, cPanel lists all the files and directories of your website if there is no index file. This could be a huge security risk should you have any backups or sensitive information saved in your public_html directory.

Directory listing

You can however disable this by choosing No indexes.

To do this, login to your cPanel account and click on the Indexes icon.

cPanel Indexes

Next, select the www folder.

Select www folder

Finally select "No Indexing" and click on Save.

Select No Indexing cPanel

  • cpanel
  • 0 Users Found This Useful
Was this answer helpful?