L
L
Laid2018-10-21 21:00:01
JavaScript
Laid, 2018-10-21 21:00:01

What is the 100% way to determine that the user came from popular PS / directly?

What is the 100% way to determine that the user came from popular PS / directly?

Document.referrer and $_SERVER['HTTP_REFERER'] don't always return PS, do they? Or at the current moment in relation to PS, these two values ​​always correspond to reality?

PS the question concerns all popular browsers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony Tkachenko, 2018-10-22
@LemonFox

HTTP_REFERER is given by the client (browser) as a request header.
And yes, it may not exist and the headers can always be changed, so there is no 100% way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question