in reply to Redirect Script unless called from previous script
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Redirect Script unless called from previous script
by Anonymous Monk on Nov 02, 2012 at 16:46 UTC | |
by bitingduck (Chaplain) on Nov 02, 2012 at 17:05 UTC |
In Section
Seekers of Perl Wisdom