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...
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...
Card Puncher Data Processing
What are the UTM (Urchin Tracking Module) known as Campaign Parameters?

Urchin Tracking Module (UTM) are tracking information added to a URL and are also known as campaign parameters. Tag your ads, emails and social media posts with UTM tags and analyze your ecommerce and...
What is a Cross-site request forgery attack (CSRF)? Web Security

A Cross-site request forgery (CSRF) is: a http request made by real users unknowingly with the help of the browser from a website to another target website (ie making the request a cross-site...
What is a HTTP Same-Site Request?

A request is: same-site if its target's URI's origin's registrable domain is an exact match for the request's initiator's (the parent or referer)) and cross-site otherwise. In security terms, it's...



Share this page:
Follow us:
Task Runner