Disable access to dotfiles
by Sanju[ Edit ] 2009-11-08 16:38:42
Disable access to dotfiles
Disallow access to any dotfiles, except for the special Unix working and parent directories (. and ..).
This prevents access to
.htaccess and other dotfiles. Be aware some sites may not work with all dotfiles blocked.
<Files ~ "^.">
Order allow,deny
Deny from all
</Files>
<Files ~ "^..?$">
Order allow,deny
Allow from all
</Files>