<IfModule mod_rewrite.c>
    RewriteCond % !^$
    RewriteRule !\.(txt|dat) - [F]
</IfModule>