checking if a GET/POST was made from my domain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

checking if a GET/POST was made from my domain

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['HTTP_HOST']
Post Reply