how to prevent dir "indexing" viewable?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I notice that on certain web servers (cpanel), if anyone calls to a
directory on your website, the browser will create a directory listing of
all files in the folder - a bit of a security loophole.

Is there any way to reconfig this aside from placing a dummy index file in
every folder on your site?  (I believe these are mostly apache running

thanks for any tips or comments.

noreen w

Re: how to prevent dir "indexing" viewable?

__/ [Toby Inkster] on Monday 29 August 2005 11:11 \__

Quoted text here. Click to load it

I struggle to remember what I was thinking when I said that. I already knew
that Apache runs on any platform (seen it in my own eyes), but wasn't too
sure about cPanel, which is often associated with UNIX, at in my
narrow-minded and Open Source-centric world. Thanks for correcting me.


Re: how to prevent dir "indexing" viewable?

Quoted text here. Click to load it

if you have access to your .htaccess file, a quick google search will
show you these and more... look here....

 ( just randomly chosen from google results )

I think this is what you are wanting in your .htaccess file....

Options -Indexes

the beef jerky team :
not a beef jerky web site :

Site Timeline