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.

  1. First, log in to your cPanel.
  2. Click "File Manager".
  3. Choose the /public_html directory that the .htaccess file is in.
  4. Select the .htaccess file.
  5. Click "Edit File" in the middle of the menu bar.
  6. Then just type the following into your .htaccess file: Options -Indexes
  7. Save the file.
Was this answer helpful? 0 Users Found This Useful (10 Votes)