Sorry if this is a dumb question, but how do I turn off index browsing on my site and should I?
This is a discussion on Index Browsing?? in the Open Discussion & Chit-chat forum
Sorry if this is a dumb question, but how do I turn off index browsing on my site and should I? ...
Sorry if this is a dumb question, but how do I turn off index browsing on my site and should I?
Well, you could always just put a blank index.html page in every directory that you don't want people browsing in. However, cPanel does provide an easy way to do it. The Index Manager allows you to turn off directory indexing. You'll find it under "Services" (2nd from the bottom in that category).
It should be off by default, I think? But if it isn't, in your docroot directory
/home/youname/www
create a file by the name of .htaccess
and place the following line
OPTIONS -INDEXES
That should turn it off for all directories.
I thought .htaccess files were case sensitive? The line I use is this:
Options -Indexes
Nope...
--JasonDirectives in the configuration files are case-insensitive, but arguments to directives are often case sensitive. Lines which begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on a line after a configuration directive. Blank lines and white space occurring before a directive are ignored, so you may indent directives for clarity.
(http://httpd.apache.org/docs/1.3/con...ng.html#syntax)
Thanks for all of the replies, I think I have what I need.
Copyright © 2011 JaguarPC.com
Bookmarks