Jump to content

Prevent Directory Listing


SandySynaptik

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...