How can i make an if statement where if a person comes from abc.com to my site it would show something different ?
I have seen something at one point based on ip address but i want to use a website address instead anyway.
$_SERVER['HTTP_REFERER'] holds the referring value, if it exists. Note that you cannot trust this source, however.
What do you mean, can not trust this source.
Originally posted by Mordecai $_SERVER['HTTP_REFERER'] holds the referring value, if it exists. Note that you cannot trust this source, however.
From the Manual regarding predefined $_SERVER variables:
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.