Is it possible to send referrer information using php?

is it possible to send reference information using php?

+3
source share
4 answers

If you, for example, get the contents of a URL in PHP using cURL, you can send any additional headers you want, including the referrer header.

You cannot force the user's browser to send the referrer header in any way, especially not from the server-side language.

+5
source

Unable to get client browser to send another Referer header.

, HTTP- PHP ( cURL, URL-), .

+3

, Referer .

0

Referer - , , . , PHP "".

HTTP- PHP, , , .

:.. , , . , , HttpRequest:

$options = array(headers => $header_array,
                 httpauth => $credentials);
$r = new HttpRequest($url, HTTP_METH_POST, $options);

addHeaders:

$r->addHeaders(array('Referer' => 'http://example.com'));
0

Source: https://habr.com/ru/post/1741878/


All Articles