title: .htaccess Allow only from a certain script (not by IP)
body: <p>I have 2 separate servers (Server A and Server B) each with a PHP script (Script 1 and Script 2).</p>
  
  <p>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.</p>
  
  <p>In other words --> run script 2 on Server B <strong>only if</strong> http request comes from script 1 on Server A. {Note: I do not want to button-down by IP, only by referring script]</p>
  
  <p>Is this doable in an .htaccess file using Allows and Denys? Or is it done some other way.</p>
  
  <p>I can't do this via a _SERVER var because I can't seem to capture the referring script in my PHP Script 2.</p>
  
  <p>Thanks.</p>