The referer identifies the URL of the page where the request originated.

About

The referer (or referrer) identifies the URL of the page where a link was clicked (ie where the request originated). It identifies the address of the web page that linked to the resource.

The referer may also be known as the request's initiator.

Its value is given in the referer header field written in a http request (referer is a misspelling of referrer. See HTTP referer note-1)

A referrer source is either:

Syntax

The client, generally a browser would insert the following header in the http request

Referer: https://datacadamia.com/web/http/method

How to get the Referer in Javascript

  • In a iframe
var referrer = parent.document.referrer;
// not in a iframe document.referrer;
  • Print
console.log(referrer);

where:

Policy

The referrer policy modifies the algorithm used to populate the Referer header when fetching subresources, prefetching, or performing navigations.

See HTTP - Referrer-Policy Header





Discover More
Card Puncher Data Processing
Code design - (Connection|Session)

During the use of a product, a session or connection is a execution context that holds identification data (if any) and group actions (such as interaction or transaction) that take place within...
DOM - Document (Object)

Every XML doc and HTML document (Web page) in an HTML UA is represented by a TR/html5/dom.htmlDocument object. A document in the context of a browser is generally a HTML document (Web Page). The Document...
Email - Open (Tracking)

Opening an email is an user action that shows engagement and is one of the email metrics. The opened email are tracked with a invisible one-pixel image. Ie when the email loads images, a HTTP get...
Card Puncher Data Processing
Google Analytics - Tracker

in Google analytics Tracker objects (also known as “trackers”) are objects that can collect and store data and then send that data to Google Analytics. doc...
HTML - Image (Img tag)

img is an fetch element that represents an image. An image in HTML can also be represented with a picture element that defines logically the same image but may have different physical image (different...
Origin Http Header
HTTP - Origin Server (Header Field)

The Origin header is: a header field added to a request by the browser (ie client) with the origin value that indicate the source of the code (HTML, Javascript, ...) that created the request....
HTTP - Referrer-Policy Header

The referrer policy is a security response header that modifies the algorithm used to populate the Referer header when: fetching subresources, prefetching, or performing navigations. referrerpolicyHTML...
Chrome Devtool Har
HTTP - Request

An HTTP request is a message sent from a client to a server. It's the first part of a fetch, the second being the response. A request message has: a first line called the request...



Share this page:
Follow us:
Task Runner