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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetEnvIf Request_URI not working

Status
Not open for further replies.

mindgrub

Programmer
Dec 4, 2001
1
US
I am trying to restrict access to anyone not seeking a .php file in this directory. I have added this to my httpd.conf file but it is not allowing me to access .php files either - what is wrong with the script?

SetEnvIf Request_URI "\.php$" cd_rom
<Directory /usr/local/etc/httpd/htdocs/todd/htaccess/>
Order allow,deny
Deny from all
Allow from env=cd_rom
</Directory>

What I am trying to do is to have a folder that is protected, but can be accessed from our companies cd-rom by sending variables on the url string to a php file. so if they don't have the cd-rom (aka - don't know the proper variables) they can't view anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top