<FilesMatch "\.txt">
Order allow,deny
Deny from all
</FilesMatch>
To block visitors access to all .txt files in the directory where the .htaccess is placed. However, this obviously does not work. It blocks visitors from seeing the file in the directory listing, but if I type full path to any txt file I will see the contents of that file easily.
change the order of your order directive to deny,allow
or
add Allow from none above your deny from all..
the order directive is "order" specific... so, if you put "Order deny,allow" apache is expecting deny from <whomever> to come first... conversely if you put "Order allow,deny", it would expect Allow from <adfasdf> first...