views:

28

answers:

2

I bought a domain name and am trying to figure out how to configure it responsibly. I haven't set up an index.html file yet and I've noticed that if I hit my domain, I see my file directory tree. and I can dive down to all the files within my browser. Is there a way that I can disable this?

A: 

If you are using IIS.

  1. Right-click on your website, and choose Properties.
  2. Select Home Directory tab.
  3. Uncheck the Directory browsing.
Mehdi Golchin
A: 

You can try a few things:

  1. create an empty file named index.html and upload it into the public_folder
  2. create an .htaccess file with the following contents: Options -Indexes
  3. If you have some kind of cpanel for your site, look for options to disable directory browsing.

Creating the index.html file is probably the easiest and most consistent way to go.

FYI, my .htaccess info came from techiecorner.com

Frank DeRosa