I have a website where I click on a link and am redirected to another website.
Is there a way, the other website (www.otherwebsite.com) can determine accurately that the request has been sent from my website http://www.mywebsite.com?
I have a website where I click on a link and am redirected to
Share
Yes, using the HTTP header called “Referer” (no, that is not a spelling mistake, that is actually the name of the header).
For instance, in PHP you would do this:
The same code in JavaScript:
This could output: