How to hide folder content?


#1

Hello,

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?

Thanks


#2

2 common methods:

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

#3

Thank you LakeRat! It works!