<Files ~ "\.tpl|php|txt$">
    Order allow,deny
    Deny from all
</Files>