Apache Server configuration support - .htaccess

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2007 > .htaccess





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .htaccess
Brian Telford

2007-05-21, 7:23 am

I am having problems getting .htaccess to work properly.
IPart of a site I manage is used for storing documents which are accessed by
authorised users via php scripts, I want to prevent direct access to the
files by typing the file address into a browser. I assumed the following
would work
order deny,allow

deny from all

allow from domain name

<Files .htaccess>

order allow,deny

deny from all

</Files>

domain name is the site name
but this prevents the php scripts from accessing the files as well.
Where am going wrong.
The site is not on my own server but on a unix server running Apache 1.3

Brian


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com