Disable access to dotfiles

by Sanju 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>


Tagged in:

1295
like
0
dislike
0
mail
flag

You must LOGIN to add comments