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!

Using SetEnvIf

Status
Not open for further replies.

lweihl

Technical User
Jun 7, 2000
1
US
I have a user that would like to restrict access to underlying directories from a main page.&nbsp;&nbsp;That is she doesn't want anyone to be able to have a link on their web page that points to one of her sites underlying pages.<br><br>I thought I could do this with the following code:<br><br>SetEnvIf ^<A HREF=" TARGET="_new"> origin_ok<br><br>&lt;Directory /herpage/*/&gt;<br>order deny,allow<br>deny from all<br>allow from env=origin_ok<br>&lt;/Directory&gt;<br><br>The problem is when I implement this it's just like the env. variable never gets set. Regardless of where the link comes from access is denied.<br><br>I've searched all over the web for help with this.Upping apache's log level to debug did not lend any useful information.<br><br>Can anyone help me with this?<br><br>I'm running Apache 1.3.6 compiled with dynamic module support on a Solaris 2.6 box.<br><br>Thanks,<br>Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top