Thank you for your question about preventing access to directory listings. The most efficient way to do this is to use the Index Manager in cPanel. Choose "No Indexing" for public_html (your main domain's document root). This adds code to your .htaccess file which will protect not only that folder but subfolders as well (unless you add a separate .htaccess file in a subfolder).
Please let us know if you have any questions or need any additional assistance.
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|