Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: .htaccess no correctly working |
|
Author |
|
kaisellgren
Joined: 24 Jan 2007 Posts: 4 Location: Finland
|
Posted: Wed 24 Jan '07 18:30 Post subject: .htaccess no correctly working |
|
|
Hi,
I use
Code: | <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.
How do I block access to all .txt files ENTIRELY?
Thank you for your help! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 25 Jan '07 11:13 Post subject: |
|
|
Enabled .htaccess? (AllowOverride All)
Code: |
<FilesMatch "^\.txt">
Order allow,deny
Deny from all
</FilesMatch>
|
|
|
Back to top |
|
|
|
|
|
|