Options -Indexes

Order Deny,Allow

<Files "*.json">
Deny from all
Allow from localhost
</Files>

<Files "*.txt">
Deny from all
Allow from localhost
</Files>

<Files "*.log">
Deny from all
Allow from localhost
</Files>