How to Stop A Directory Index From Being Shown

Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, a full listing of all the files in that directory will be shown, which could be a security risk for your site. To prevent against this (without creating lots of new 'index' files), you can enter a command into your .htaccess file to stop the directory list from being shown: Options -Indexes.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 How do I setup custom php.ini settings?

We have recently updated many of our shared hosting servers to php 5 with phpSuExec enabled. This...

 HTTP Error 500 - Internal server error

Internal Server Error help, 500 error Internal server errors can be caused by a few different...

 What is the path to public html in php?

The path to public html is: home/$cpusername/public_html/

 Error: register_globals is disabled in your PHP

If you installed a new script and are getting the 500 error trying to load the page please see...

 Do I get a Site Seal when I purchase an SSL Certificate?

Yes you do receive a Site Seal when you purchase an SSL Certificate.