How to Prevent a Directory Listing of Your Website with .htaccess
cPanel

How to disable “Directory list of files-view” whenever there is no index.html or homepage file?