<Files *.php>
Order Deny,Allow
Deny from all
# Allow from 127.0.0.1
</Files>
<FilesMatch "(?i)((\.php|\.tpl|\.html|\.exe|\.ini|\.log|(?<!robots)\.txt))">
Order Deny,Allow
Deny from all
</FilesMatch>
<Files ~ "(index|r)\.(ph?p)$">
Order Allow,Deny
Allow from all
</Files>