note
cLive ;-)
<p>Simple, works for general case (but fakable) - check HTTP_REFERER environment variable.</p>
<p>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.</p>
1002004
1002004