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.

  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

How do I create a redirect for my site?

The redirect option is available in your control panel. Please login into your control pane and...

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...

Is PHP compiled with 'enable-calendar'?

Web Calendar is available to install under 'Other Services' in the 'Fantastico or Softaculous'...

How do I activate SSL in osCommerce?

In order to configure osCommerce to work with SSL please open the file...

HTTP Error 500 - Internal server error

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

Powered by WHMCompleteSolution