Page 1 of 1

Disable directory browsing

Posted: Wed Sep 28, 2011 9:35 am
by cclc
Hi. I have a feature request. It seems that directory browsing (the Indexes option in Apache) is enabled by default for my hosting account. I'd love to be able to turn that off. I just talked to tech support and I was informed that in order to do this, I have to drop a .htaccess file in every folder on my site.

I think it makes more sense for the default to have directory browsing disabled, but in any case, I'd love to be able to turn it off globally for my site. I'm now off to upload many .htaccess files....

If anyone has a better idea, I'd love to hear it :) Thanks!

Re: Disable directory browsing

Posted: Wed Sep 28, 2011 10:57 am
by kgc
You should only have to upload a single .htaccess to the root of your hosting directory - its options will inherit to all sub directories unless you override them with another .htaccess

Options -Indexes

Re: Disable directory browsing

Posted: Wed Sep 28, 2011 11:05 am
by cclc
Oh yeah, I forgot they inherit. Thanks for the tip!

Re: Disable directory browsing

Posted: Thu Sep 29, 2011 7:21 am
by gp1628
I like directory browsing.

Another option if anyone wants it in some directories and not others, just drop an index.html into the directories you dont want browsed