jahsh
10-16-2001, 02:04 PM
hello, how do i go about protecting a directories contents without using a .htaccess? Basically what is happening is this: when I go to mydomain.com/images i see links to all the images. Now I can put a blank index.html file in the directory and that fixes the problem for the moment, but what if I have 100 directories. I dont want to have to make 100 index.htmls. IM sure there must be a way around this. Any help would be greatly appreciated!!!:D
CmptrWz
10-16-2001, 03:08 PM
The easiest way is with .htaccess. Just stick one at the bottom of the tree with Options -Indexes
Either that or name every file with a leading . so that they are all hidden.........
jahsh
10-16-2001, 03:35 PM
what do you mean at the end of the tree? also if anyone else has any ideas please let me know. the user really doesnt want to have to create a .htaccess for each directory (there are a lot of them). thanks in advance!!
CmptrWz
10-16-2001, 04:25 PM
If you have a directory named dirmain with 2000 directories named dir1 to dir2000 then you stick a .htaccess file in dirmain and it affects everything below it in the tree, namely dir1-dir2000
So ONE FILE does it all.
I stick the file in the site folder so it affects the main site and all user sites as well.