If you don’t have an index file in every directory the contents of the directories are open for viewing. This can be a serious security issue.
- First log in to your cPanel
- Click "File Manager"
- Choose the directory that the htaccess file is in by clicking on the file icon
- Select the htaccess file
- Click "Edit File" in the middle of the menu bar
- Then just type the following into your htaccess file in the public_html directory: Options -Indexes