I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from looking into my sub folders?
Thanks,
Patti
This is a discussion on Forbid intry into my sub folders? in the Shared & Semi-Dedicated forum
I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from ...
I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from looking into my sub folders?
Thanks,
Patti
If protecting those subdirectories with a password is an option there is a Password Protection feature in the Control Panel.
Gravity, more than a good idea, it's the law!
Yeah. You can use the password protect feature in cPanel, or you can use the manual method, htaccess and htpasswd. That's what I do. cPanel's function is basically a graphical and easy to use front end for those tools.
You can stop them from looking at the directory listings by placing an index.html file in the directory with anything of your choice in it, or by placing a .htaccess file with (at least) one line:
in the directory, or any parent directory.Code:OPTIONS -INDEXES
Either will prevent people from LOOKING at your directories (in fact "OPTIONS -INDEXES") should be the default, it's possible that a parent directory has an "OPTIONS +INDEXES" that's currently overriding the system default.
Neither will prevent people from looking at individual files for which they already know (or can guess) the filenames.
Good luck.
One thing I do is put empty (zero byte) 'index.html' files in all my folders. I do other things as well, but even if everything else fails, all 'they' will see is a blank white screen...Originally Posted by Patti
DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.
Actually, it would be Options -Indexes. I thought that htaccess files were case sensitive?
Originally Posted by Ron
Source: http://httpd.apache.org/docs/configuring.htmlOriginally Posted by Apache HTTP Server -- Configuration Files
[Emphasis Mine]
Copyright © 2011 JaguarPC.com
Bookmarks