I wonder if there is any tool / api to know from which website the visitor came to, to account visitors coming from the search engines. Thank you all.
I wonder if there is any tool / api to know from which website the visitor came to, to account visitors coming from the search engines. Thank you all.
'HTTP_REFERER'
The page address (if any) through which the user agent accessed the current page. This policy is informed by the user agent. Not all browsers generate this header , and some still have the ability to modify HTTP_REFERER content as a resource. In a nutshell, it is not reliable.
Just use as below, but do not rely on these data.
$origem = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : null;