
August 23rd, 2000, 10:49 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
This is untested, just my little idea.
#httpd.conf
SetEnvIf Referer www.mydomain.com/protected/ okay
SetEnvIf Referer www.mydomain.com/cgi/pitch.pl also_okay
<Directory "/home/httpd/htdocs/protected">
order deny,allow
deny from all
allow from env=okay env=also_okay
</Directory>
#.htaccess in /protected (so this will override the global ErrorDocument 403)
ErrorDocument 403 http://www.mydomain.com/secondaccess.html
or point your ErrorDocument to a script to determine whether the HTTP_REFERER is blank, then Redirect to index.html. Or if HTTP_REFERER is not blank, redirect to secondaccess.html.
[This message has been edited by freebsd (edited August 23, 2000).]
|