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.
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.