How To: Disable Directory Indexing/Browsing in cPanel
Allowing anonymous users to browse your directories via HTTP is a security risk. You should either create a blank index file or disable directory browsing. If you use cPanel, it is easy. Follow these steps.
Disable Directory Browsing from cPanel
Login to cPanel
Scroll down to Advanced OR type Index Manager in the Search (upper left) of cPanel

Click on Index Manager
A new window will appear, Select Document Root For: and Click Go
You’ve now disabled directory browsing/indexing for your website via cPanel. This will added a line to your .htaccess file: Options All -Indexes


Social Links
Thank you for taking the time to read this post. We hope you've enjoyed the
content here. Please feel free to use the links below to share this post with others.