Disable access to dotfiles - Apache Views : 525
Tagged in : Apache
0 0
Send mail
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>


By Sanju, On - 2009-11-08



    Login to add Comments .