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.

  • Directory Index, Being Shown, Stop A Directory Index
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can I add my own CGI scripts?

Our LINUX web servers have the capability to run CGI scripts in your own 'cgi-bin' directory....

CAPTCHA: Telling Humans and Computers Apart Automatically

A CAPTCHA is a program that protects websites against bots by generating and grading tests that...

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.  

Do I use localhost or remotemysqlhost for my mysql connection ?

You can view whether your account is using localhost or remotemysql host in your cPanel account....

Error: register_globals is disabled in your PHP configuration

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

Powered by WHMCompleteSolution