Or better yet, what do I do to keep people from viewing the directory if there isn't a index.html
D
D
Options All -Indexes
edesignuk said:Is the server Apache? If so, just pop a .htaccess file in the dir with this in it.
Code:Options All -Indexes
whocares said:Permissions should be 744 I guess (all-read-read), maybe 755.
.htaccess files are inherited. Put one in your root directory, and all directories will be 'protected'.
You may of course over-write the inherited .htaccess parameters for a given directory with a new .htaccess file. In turn, this new file will cascade down to all sub-directories.
belvdr said:EDIT: If you choose .htaccess files, do _not_ use 744 or 755. You want these to be 644, maximum.
whocares said:Would you care to elaborate on this, and its security implications?
Also, if you modify your httpd.conf file (which *is* the best method, but rarely available in shared hosting environments), don't forget to restart Apache
Mr. Anderson said:i'm not hosting the stuff myself, so I'm going to go with the .htaccess file route.
Thanks for all the help - this is great
It works great, and the standard permissions are 644, so that wasn't an issue. Now I need to set up an error page - what error number is that?
D