E.g. I have two domains:
http://www.computer.com
http://www.computers.com
http://www.computer.com
is main website and http://www.computers.com
is just dummy that will redirect to main website (http://www.computer.com).
So my goal with pure PHP is to detect that user comes from http://www.computers.com
rather than google or other website or directly typing url without using refer since it can be disabled.
Both sites are on same hosting, but I cannot access file system of one site from another. And $_SESSION
is or $_COOKIE
are domain specific variables too.