Tell me more ×  How can you get the HTTP Referrer when
redirected from another website, not when they click on a link
since it would work for $_SERVER['HTTP_REFERER'], but it doesn't
work when a user has been redirected a website and the referrer
would be empty.  What will be the method to get the referrer?
share|improve this question add comment  3 Answers  up vote 5
down vote accepted  How can you get the HTTP Referrer when
redirected from another website  You can't. If the redirection
takes place under your control, you can add the original referer
as a parameter, but if the external redirector doesn't do that,
you have no way to get hold of the information.  share|improve
this answer Aw. So there is absolutely no way to know where the
user came from when the user got redirected? –  Burning the
Codeigniter Oct 28 '10 at 13:13 @YouBook not as far as I know,
no. –  Pekka 웃 Oct 28 '10 at 13:16 add comment  Have a read of
this:  share|improve this answer This won't help in this
specific case, where REFERER ha