Disable directory browsing

Web hosting discussion, programming, and shared and dedicated servers.
4 posts Page 1 of 1
by cclc » Wed Sep 28, 2011 9:35 am
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!
by kgc » Wed Sep 28, 2011 10:57 am
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
Kelsey Cummings
System Architect, Sonic.net, Inc.
by cclc » Wed Sep 28, 2011 11:05 am
Oh yeah, I forgot they inherit. Thanks for the tip!
by gp1628 » Thu Sep 29, 2011 7:21 am
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
4 posts Page 1 of 1

Who is online

In total there are 24 users online :: 1 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: Google [Bot] and 23 guests