|
How do I stop people viewing all the files in a directory? |
|
|
Option 1 - If any of the following filenames appear in a directory the file will be returned when a directory is called on it's own. index.html index.htm index.shtml home.html home.htm default.html default.htm index.php default.php index.asp default.asp index.cgi index.php3 index.php4 index.wml index.wmls .
Option 2 - Add the line 'Options -Indexes' to your .htaccess file and any directories that would return a directory listing will now return 403-Forbidden. This works well when you have configured the errorpages for your site.
|