You can check out the value of the server variable HTTP_REFERER:
Keep in mind that this is set by the browser and can't really be
trusted to give you accurate information (or any information at all).
A better option would be to have the calling scripts pass some sort of
variable either in the URL as a GET variable or through a form as a
POST variable, the check the value of that variable on the receiving