in reply to AuthorizedDomain script?

Assuming your real question is whether HTTP_REFERER can be used to check where a given request is coming from, the answer is "it depends". It sometimes works, but not reliably. It's fairly easy to spoof a false value, or to send no value at all (some browsers may do this for extra security).

Think about why you want to do this kind of check, then ask for a way to deal with that issue.