Mar

22

Filenames beginning with a dot, or dot-files are considered “hidden” by UNIX. Usually, you don’t want to serve those to visitors to your website. Dreamhost already disallows retrieving ‘.htaccess’ and ‘.htpassword’, but you can recursively deny all access to all hidden files by placing into a top-level .htaccess:

RedirectMatch 403 /\..*$


This is useful when, e.g. your website is a Subversion “working copy.”



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

Sponsors




Links