Forum Moderators: phranque

Message Too Old, No Replies

Can a directory with an index page still be browsed

by users?

         

HughMungus

1:01 am on Feb 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does having an index page always prevent users from browsing the directory in which the index page resides? If not, how would someone browse the directory with the index page in it? I know I can secure the directory with .htaccess, etc. etc., but, not wanting to do that just yet...

TIA

jdMorgan

1:59 am on Feb 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HughMungus,

You don't have to protect the directory to prevent browsing. See the description of Options Indexes [httpd.apache.org] in the Apache core features documentation. You may also want to review the DirectoryIndex directive [httpd.apache.org] in Apache mod_dir.

HTH,
Jim

hakre

11:51 am on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi HughMungus,

welcome to webmasterworld. times ago, it was possible to browse directories even if an index file existed. but today this does not work any longer that well. so if you place a index.html into it, browsing is prevented.

as jdmorgan stated, on apache it's quite easy to go around this and setup a handler to prevent browsing directories.

HughMungus

3:52 am on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks!