I have 2 separate servers (Server A and Server B) each with a PHP script (Script 1 and Script 2).
I have PHP script 2 on Server B that I want to run, but only from PHP script 1 on Server A. I do not want any other http requests to pass through the directory on Server B where my protected script resides.
In other words --> run script 2 on Server B only if http request comes from script 1 on Server A. {Note: I do not want to button-down by IP, only by referring script]
Is this doable in an .htaccess file using Allows and Denys? Or is it done some other way.
I can't do this via a _SERVER var because I can't seem to capture the referring script in my PHP Script 2.
Thanks.