3 ms·
You can still do this. The Referer header is sent by default on requests, and you can make your server interpret it to do anything you want.
by jefftk 7y ago
You can still do this. The Referer header is sent by default on requests, and you can make your server interpret it to do anything you want.
- gmfawcett 7y agoThis is true unless the referring URL is secured (HTTPS), and the destination URL is not. In that case a conformant user-agent will leave Referer out. https://tools.ietf.org/html/rfc7231#section-5.5.2 https://tools.ietf.org/html/rfc7231#section-5.5.2
- jefftk 7y agoTrue, though you should run HTTPS on your site. Which means you'll get the Referer unless the other site or the user's browser has been configured to suppress it.