Prevent your directory from being viewed when Index file is absent

May 26th, 2010

When you make any new directory or folder under your hosting and it does not have any index page, you are able to see the directory structure or a list of all files available on that folder. To prevent this from happening, you can either put up a blank index file or use .htaccess rules to hide the folder content thought-out your website. Please have a look at this comprehensive article if to make this happen using .htaccess. How to Prevent a Directory Listing of Your Website with .htaccess

Comments

  1. Murali May 29th, 2010

    wow , thanks for sharing it in simple way

Leave A Comment