Page 1 of 1

checking if a GET/POST was made from my domain

Posted: Mon Aug 23, 2004 8:35 am
by pelegk2
i want to check wheter a script that was accedd by the client
was from my domain :
what i mean is say i have a domain called
http://www.mycoolestdomainonearth.com
and i have a 1.php script
and i have a flash program or a program that is written in JS and uses microsoftXMLHttp activeX to access that page!!!
how can i check that each of them is running in under my domain
http://www.mycoolestdomainonearth.com
and not from html script in on the desktop!
(to check that the flash run's in a browser or not isnt the problem!!!)
what can i do?
thnaks in advance
peleg

Posted: Mon Aug 23, 2004 9:54 am
by feyd
$_SERVER['HTTP_HOST']