Directory Listing


#1

Hi,

I have been searching the help files but have been unable to find any information on how I can turn off directory listing for certain websites I host with dreamhost, so if a user enters the wrong folder (that doesn’t have a index.html file in) a 404 error (or similar) is shown not a list of the files in that directory.

Many Thanks for any help.


#2

From the DH Wiki: http://wiki.dreamhost.com/index.php/Modifying_directory_indexes

That would be the method I recommend going with anyways.
You could also just throw in a blank “index.html” file into any directory you don’t want to show up, which would just show users a blank page. :slight_smile:


#3

That is great … thanks for the very quick reply :smiley:


#4

I personally use an index page with a redirect that throws the user back to the main location of my domain.


find/offer services free
http://www.TheHelpfulNeighbor.com
Codes:THNMax ($97) THNMaxHDD (+100%) THNMaxBW (+100% txfr) THNMaxDomains (5 free) THNBalance (20% HD&BW, 1 Domain+IP +$16)