in reply to how to use this -- HTTP_REFERER
...which basically goes through the list of valid referers and checks if the one you just got is in it.$referer = $ENV{'HTTP_REFERER'}; my @valid_referers = ( 'http://www.yoursite.com/cgi-bin/a.cgi', 'http://www.yoursite.com/cgi-bin/b.cgi' ); print $query->redirect('/cgi-bin/errorpage.cgi') unless ( grep $_ eq $referer, @valid_referers );
Hope this helps
"Argument is futile - you will be ignorralated!"
|
|---|