I'm working with some ways to track the actions that come from documents I or others may write. Sometimes you see journals have things like "impact factor" and online advertising has a lot of means to evaluate ad effectiveness. I wanted to include a document identifier in a request header so that when someone clicks on a link, maybe in the bibliography, that the server can determine which document generated the user interest. However, I can't find anything about "request headers" and the "header" term gets mixed up with page headers while the quote string returns no results. I can modify the embedded links with a document specific query sting but the referer header seems better suited for this.

Thanks. Edit: to clarify, I made a local url in a tex document,

Blockquote However, many diseases relate to changed redox status. VKOR regenerating reducing agents ZZe

In another window, I open up a server socket with netcat and get this output ( not the lack of a referer),

`nc -l 9999 GET /foo/doo.html HTTP/1.1 Host: Connection: keep-alive sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90" sec-ch-ua-mobile: ?0 DNT: 1 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: none Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9

  • the referer header is set by the server hosting the document, you can't set it from within the document. Jun 23, 2021 at 18:43
  • yes in html you can do rel="noreferrer" to block the header being sent but you can't control its content (and in pdf I don't think you can even do that) Jun 23, 2021 at 19:00
  • I guess maybe this is a pdf question rather than tex but just to clarify see my next post. Thanks Jun 23, 2021 at 20:12
  • if the pdf with the link was just on the filesystem you won't get a referer you need to put it on a server with an IP address that it can report. Jun 23, 2021 at 20:29


You must log in to answer this question.

Browse other questions tagged .