|
|
Disable access to dotfiles - Apache
|
Views : 525
|
|
Tagged in : Apache
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|