Html index page and files in that directory

Posted by Frank on Stack Overflow See other posts from Stack Overflow or by Frank
Published on 2010-03-23T15:06:17Z Indexed on 2010/03/23 15:13 UTC
Read the original article Hit count: 557

Filed under:
|
|
|

On my web site, there is an index page, but if I take out that index page, users will see the files in that directory, for instance my site is : XYZ.com and I have a directory called "My_Dir", so when a user typed in "XYZ.com/My_Dir" he will see the index.html if there is one, but if it's not there, he will see a list of all my files inside "My_Dir", so is it safe to assume that with an index page in any of my sub directories, I can hide all the files in those directories from users, in other words if I have "123.txt, abc.html and index.html" in "My_Dir", users won't be able to see "123.txt, abc.html" because of the existence of "index.html" [ unless of course I mention those two files inside index.html ] ?

Frank

© Stack Overflow or respective owner

Related posts about html

Related posts about index