Im using single sign on solutions from jahrain. basically, i want to detect users coming from (facebook, yahoo, google, myspace, live/hotmail, openid) domains. then if not logged in. redirect to a webpage intended for these visitors. im using php.
Asked
Active
Viewed 987 times
2 Answers
1
While this is not foolproof, a common way to do this is by examining the $_SERVER['HTTP_REFERER']
environment variable, which is generally sent by the browser as a header.
That said, note the things from this thread: Determining Referer in PHP

Community
- 1
- 1

poundifdef
- 18,726
- 23
- 95
- 134
1
Look at $_SERVER['HTTP_REFERER']
.
This is an optional HTTP header the client may or may not set, so it's not guaranteed to be correct, trustworthy or to be there at all, but it's your only choice.

deceze
- 510,633
- 85
- 743
- 889