Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [TomJ] help: Edit Log

Here is the list of edits for this post
Re: [TomJ] help
Yikes.....

Try something like:
Code:
sub valid_page {
print "Content-type: text/html\n\n";
foreach (@okaydomains) {
$ENV{HTTP_REFERER} =~ /^$_/i and $ok = 1;
} else {
$ok = 0;
}
if ($ok < 1) {
print "Sorry, cant run it from here....";
exit;
}
}

@okaydomain = ('http://www.mydomain.com/cgi-bin/birdcast.cgi','http://mydomain.com/cgi-bin/birdcast.cgi');

Last edited by:

PaulWilson: Sep 17, 2001, 8:35 AM

Edit Log: