How to hide folder content?


When I visit a folder on my host it shows all the content inside. How can I make that it possible to visit html page but the folders content is not available to see?


2 common methods:

  1. Create a file named .htaccess and include one line:
Options -Indexes
  1. Create an empty file named index.html

Thank you LakeRat! It works!