PDA

View Full Version : Hide Index of directory


cben
1-16-04, 08:30 PM
Is there a way to prevent users from reading the index of directory: .

For example: Index of /SiteX

http://cben.net/SiteX/
without any xxx.html at the end of SiteX/


it reads the directory structure. I would like to prevent people from reading it. Is it possible

tbonekkt
1-16-04, 08:35 PM
In your .htaccess file, insert:Options -indexes

B&T
1-16-04, 08:42 PM
or put a blank index.htm page in the directory.

cben
1-16-04, 08:59 PM
I have had trouble with htaccess
I tried the empty index.hmt page and it works great.

Thanks