>Hi All,
>I am trying to modify the access.conf server configuration file to
>restrict CGI access from remote hosts to CGI files in a particular
>directory yet allow CGI access in the same directory for visitors to my
>web site (i.e., people who come using their browsers).
>This way you actually must be visiting my site to access the CGI script. I
>want to do the same but from the web server level, before PERL is called.
environment variables are available in the rewrite configuration:
Rewri*gine on
RewriteCond %{REQUEST_URI} /cgi-bin/my.cgi
RewriteCond %{HTTP_REFERER} ! ^http://www.veryComputer.com/ [NC]
RewriteRule (.*) http://www.veryComputer.com/
Put this in httpd.conf and away you go. :-)
-=Fozz
--
"I have learned much more about Microsoft by using the Linux operating
system than I ever would have done by using Windows." --Neal Stephenson