home                      hosting                     domain registration                     support/faq                     sign up

HostingPackages

Linux Hosting

Reseller Accounts

ContactUs

AboutUs

Announcements!

UserAgreement

                 

SecurityFAQ

Domain Name Registration Service FAQ
Website Hosting Service FAQ
E-Mail FAQ
Security FAQ
URL Forwarding Hosting Service FAQ
Control Panel/Passwords FAQ
FTP FAQ
CGI FAQ
MySQL FAQ

How can I prevent directory browsing?

For instance, I don't want people to be able to view the contents of my /images directory with their browser.

1. The quick and easy way is to create an index.html file and upload it into the directory. This way browsers are forced to view it as the default page.

2. Another way is using an .htaccess file:

Create an .htaccess file in the directory that you want to block and add the following line:
IndexIgnore */*

Visitors will see the directory, but no any of the files in it.

When I try to list the contents of a directory, the server responds with "403 Error > Forbidden". How can I override this?

For security purposes, directory listing is turned off by default. If you wish to enable directory listing for your site or a sub-directory of your site, you'll need to create an .htaccess file that contains the following line:

Options Indexes

Next upload this .htaccess file to the directories that you wish to make publicity browsable. If you want this to be applied to your entire site, then you'll need to upload it to the top level of your httpdocs (or httpsdocs) directory. If you are already using .htaccess files, make sure that you include the existing information from your current .htaccess files before you upload your new version.

 

 

Copyright 2002-2008, YourWebHQ, a Division of Endlish Enterprises LLC