Who issued the request to my script?
Posted: Sat Jun 21, 2008 4:21 pm
Hi again...
I tried searchinfg, but, probably, I just don't know how to call this properly... Ok, what I need is to know which domain has sent the request to my script, so that, say, if it comes from www.some-domain.com, the script will process the query, and if it comes from www.some-other-domain.com, it'll just show some warning / exit without processing query.
I belive there has to be some built-in functions to handle this situation rather than make all the permitted domains send some sort of authorisation info before accessing scripts from my domain...
I tried searchinfg, but, probably, I just don't know how to call this properly... Ok, what I need is to know which domain has sent the request to my script, so that, say, if it comes from www.some-domain.com, the script will process the query, and if it comes from www.some-other-domain.com, it'll just show some warning / exit without processing query.
I belive there has to be some built-in functions to handle this situation rather than make all the permitted domains send some sort of authorisation info before accessing scripts from my domain...