Forum Moderators: phranque
I mean, let's say that I've a /usr/local/apache/htdocs/website folder of course it must have public access, but I don't want the user to put on his navigator bar domain/website and seeing their contents. How can this be avoided? I've seen a place that tells the following to avoid it:
<Directory />
Order Deny,Allow
Deny from all
</Directory>
But that doesn't serve al all, any idea?
Options -Indexes Other alternatives include:
1) Putting an index file in each subdirectory (possibly with a meta-refresh in the page's <head> )
2) Using mod_rewrite to generate a 30x redirect or 403-Forbidden in response to requests for indexes at all but the top level.
3) Using mod_alias to redirect requests for indexes at all but the top level.
Jim