homepage Welcome to WebmasterWorld Guest from 54.237.38.30
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
This is probably a stupid question, but..
does an index.html prevent directory browsing?
FourDegreez

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4605 posted 8:55 pm on Feb 5, 2004 (gmt 0)

Does the simple presence of an index.html prevent the contents of a directory from being browsed? Is there an HTTP command to request a directory listing? I'm a little unclear on this issue, and help is appreciated.

 

marcs

10+ Year Member



 
Msg#: 4605 posted 9:18 pm on Feb 5, 2004 (gmt 0)

Yes, an index.html file (even an empty one) will prevent directory listings from being shown.

copongcopong

10+ Year Member



 
Msg#: 4605 posted 9:22 pm on Feb 5, 2004 (gmt 0)

yes it would help. but please remember that it is actually a setting on your webserver (apache/iis).

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4605 posted 9:22 pm on Feb 5, 2004 (gmt 0)

it will but it is an Apache setting, though I can't remember the exact syntax.

robert adams

10+ Year Member



 
Msg#: 4605 posted 9:29 am on Feb 6, 2004 (gmt 0)

true, but probably 99.99% of the servers out there are setup for it.
actually it can be set for anything, but most often index.html
index.htm, index.php, index.cgi, etc.
i think that you can set priorities on which one will work if you have more than one in a directory.
I know that on my servers, index.php will work even when there is an index.html file present.

luck,
robert

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved