forbid users from browsing web directories

Avatar
  • Answered
Load browser with
mydocalerts.com/
trojaneligibility.com/
trojannationalplans.com/
Notice that these URLs bring up directory-listings.

Is there a directory setting such that web-users cannot browse our directories, e.g., see a list of files and directories?

Thanks, ever!

Mark Wanamaker
Trojan Professional Services
Avatar
Arn
Hello Mark, Thanks for the question! There are a number of ways to prevent people from browsing your directories directly from the browser. However, in your case you will want to use the option provided in the tutorial called Using the .htaccess file to change the index page. This is because that one of your sites is using an index page. This site would not be able to use instruction below unless you defined the index page in the .htaccess file as per the article above. If you use the instructions to define an index page (it can be blank) per each site, then the directory will not be browsable. If you don't want to assign the index page, you can use the following option on the website where you do not define the index page as index.html/htm/php. This is a change that will need to be added in your .htaccess file. Add this to your .htaccess : Options -Indexes If you have any further questions or comments, please let us know. Regards, Arnel C.