Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

protect a file

Status
Not open for further replies.

chock

Programmer
Jul 13, 2000
1
US
what is the proper syntax for the &lt;FILES&gt; directive<br>I am trying to protect the file home.html<br>I have tried <br>&lt;Files D:ftz/html/home.html&gt;<br>blah<br>&lt;/Files&gt; <br><br>and<br><br>&lt;Files /home.html&gt;<br>blah<br>&lt;/Files&gt; <br>but I am never prompted for a password<br><br>but I am promted for a password if I use &lt;DIRECTORY&gt;<br>&lt;Directory D:/ftz/html&gt;<br>blah<br>&lt;/Directory&gt;
 
The &lt;Files&gt; directive provides for access control by filename. It is comparable to the &lt;Directory&gt; directive and &lt;Location&gt; directives. It should be matched with a &lt;/Files&gt; directive. The directives given within this section will be applied to any object with a basename (last component of filename) matching the specified filename. &lt;Files&gt; sections are processed in the order they appear in the configuration file,<br>after the &lt;Directory&gt; sections and .htaccess files are read, but before &lt;Location&gt; sections. <b><i>Note that &lt;Files&gt; can be nested inside &lt;Directory&gt; sections to restrict the portion of the filesystem they apply to. </i></b> <p>Jon Zimmer<br><a href=mailto:b0rg@pcgeek.net>b0rg@pcgeek.net</a><br><a href= Aetea Information Technology</a><br>The software required `Windows 95 or better', so I installed Linux.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top