Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to use this -- HTTP_REFERER
by larryk (Friar) on Jul 18, 2001 at 12:38 UTC | |
|
Re: how to use this -- HTTP_REFERER
by shotgunefx (Parson) on Jul 18, 2001 at 12:51 UTC | |
|
Re: how to use this -- HTTP_REFERER
by MZSanford (Curate) on Jul 18, 2001 at 12:51 UTC | |
|
Re: how to use this -- HTTP_REFERER
by rrwo (Friar) on Jul 19, 2001 at 01:42 UTC |