php assistance :)

JosephC

Paragon
Joined
Aug 22, 2009
Messages
1,703
Reaction score
1
FP$
599
Hi, I'm having a bit of trouble and just wondering if anyone here knows what the answer could be 🙂

Example:
I've got a script on one domain but I only want certain domains to be able to access it. Another script is put onto a different domain which connects to the first using file_get_contents. The script on the first host will then check that domain against the list to see if it matches, if it does it'll return if not no results.

I know how to do the matches. The thing I'm struggling with is finding the referral domain. I don't want to use HTTP_REFERRAL as it can be spoofed. I'm really looking for the url that is accessing the page. That should be pretty straight forward as the server should see a request coming from that site. I just need help finding what variable that is.

If I've confused you then I'm sorry. This is going to be a really straight forward thing I just can't think at the moment.

Ta 😉
 
Back
Top Bottom