![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Redirect Script unless called from previous scriptby cLive ;-) (Prior) |
on Nov 02, 2012 at 16:41 UTC ( #1002008=note: print w/replies, xml ) | Need Help?? |
Simple, works for general case (but fakable) - check HTTP_REFERER environment variable. More complex, works for all - have script A send a signed request, and have script B only run if that request is valid. There are many ways to do this - the best will depend on the environment you're coding in. Eg, Mojolicious has built in signed cookies, for example.
In Section
Seekers of Perl Wisdom
|
|