mighty monk, how can i do this
# Check that this page is directed from a valid location.
$referer = $ENV{'HTTP_REFERER'}; print $query->redirect('/cgi-bin/errorpage.cgi') if ($referer eq "");
If the user want to go to the Mainpage.cgi, they have to be coming from the a.cgi and b.cgi page. not from the other page or just from the blank page. if they are not from this valid page they will be redirect to the errorpage.cgi. so how can use enhance the above coding. since it already will redirect the user to errorpage is they are from the blank page. thank you for all your help.
In reply to how to use this -- HTTP_REFERER by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |