I know that using $_SERVER['HTTP_REFERER'] would return the whole page URL that referred the user to the current page. However it is not very reliable as it can be changed and not all browsers set this.
But is there any other way to retrieve the same result? All I really want is the domain name, but the whole URL would be fine.
But is there any other way to retrieve the same result? All I really want is the domain name, but the whole URL would be fine.
