logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: .htaccess no correctly working
Author
kaisellgren



Joined: 24 Jan 2007
Posts: 4
Location: Finland

PostPosted: Wed 24 Jan '07 18:30    Post subject: .htaccess no correctly working Reply with quote

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: 7294
Location: Germany, Next to Hamburg

PostPosted: Thu 25 Jan '07 11:13    Post subject: Reply with quote

Enabled .htaccess? (AllowOverride All)

Code:

<FilesMatch "^\.txt">
    Order allow,deny
    Deny from all
</FilesMatch>
Back to top


Reply to topic   Topic: .htaccess no correctly working View previous topic :: View next topic
Post new topic   Forum Index -> Apache