Preventing sub-folder listing in Apache

I currently use mod_autoindex to list the contents of some folders on my Apache 1.3 setup. The problem is, some people are a little too curious and start exploring folders they shouldn't. Preventing sub-folder listing in Apache

Of course, I could block listing with:
Options -Indexes
But, it's a real pain to be shifting around .htaccess all the time.

Is it possible to list the files in a folder and not the sub-folders? That is, unless the person knows the name of the folder, the listing won't show him where to look?

I've noticed there is the IndexIgnore directive Is there any way I can use it like this:
IndexIgnore <folders> [where <folders> is the parameter I'm looking for, but doesn't appear to exist]
Thanks for your help Preventing sub-folder listing in Apache

 

 

 

 

Top