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 reply to Re: Redirect Script unless called from previous script
by cLive ;-)
in thread Redirect Script unless called from previous script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |