.htaccess file protection not working
Posted: Wed Jan 24, 2007 12:45 pm
Hi,
I use
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.
How do I block access to all .txt files ENTIRELY?
Thank you for your help!
I use
Code: Select all
<FilesMatch "\.txt">
Order allow,deny
Deny from all
</FilesMatch>How do I block access to all .txt files ENTIRELY?
Thank you for your help!