Prevent Direct Access by File Types via .htaccess

<Files ~ "\.(htm|html)$">
Order allow,deny
Deny from all
</Files>
<Files ~ "\.(tpl|bak|old)$">
Order allow,deny
Deny from all
</Files>

Leave a Reply

Your email address will not be published. Required fields are marked *