Web/HTML: how do referrer work technically?

Posted by NoozNooz42 on Stack Overflow See other posts from Stack Overflow or by NoozNooz42
Published on 2010-06-18T00:28:39Z Indexed on 2010/06/18 0:33 UTC
Read the original article Hit count: 414

Filed under:
|
|

I don't understand how comes webserver and trackers like Google Analytics are able to track referrals.

Is it part of HTTP?

Is it some (un)specified behavior of the browsers?

Apparently everytime you click on a link on a webpage, the original webpage is passed along the request.

What is the exact mechanism behind that? Is it specified by some spec?

I've read a few docs and I've played with my own Tomcat server and my own Google Analytics account, but I don't understand how the "magic" happens.

Bonus (totally related) question: if, on my own website (served by Tomcat), I put a link to another site, does the other site see my website as the "referrer" without me doing anything special in Tomcat?

© Stack Overflow or respective owner

Related posts about html

Related posts about web