Jump to content

Prevent Directory Listing


SandySynaptik
 Share

Recommended Posts

One way you can do it is because a .htaccess file. Inside that file you put this:

Options -Indexes

Another way is by having a index.html in that directory. So when someone tries to access the directory directly, they will get that instead. Inside index.html, you can have a blank page, or a page with an error, or you can re-direct them to another page like error.html or something. To make it simple, I'd just go with the above option. For more info: http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...