Referer

Tracking where a request came from is a core need for analytics and access control. The Referer request header identifies the address of the resource from which the current request originated.

Usage

The Referer header is sent by clients (browsers, HTTP libraries) to indicate the URL of the page or resource linking to the requested resource. When a user clicks a link on https://example.re/page, the browser sends the address of the linking page in the Referer header with the subsequent request.

The header serves multiple purposes. Analytics systems rely on the referrer to track traffic sources. Servers use the value for logging and access control. Webmasters historically mined referrer logs to find out who linked to them.

The Referrer-Policy response header controls how much information the Referer header includes. Policies range from sending the full URL (unsafe-url) to sending only the origin (origin) to omitting the header entirely (no-referrer). Most browsers default to strict-origin-when-cross-origin, which sends the full URL for same-origin requests and only the origin for cross-origin requests.

The Referer header is not sent on a request from an HTTPS page to an HTTP page (a downgrade) under the default policy. Fragment identifiers and credentials are never included in the value.

Chromium-based browsers also cap the header at 4096 bytes. A referring URL longer than the cap is reduced to its origin before sending, which is why long tracking URLs with heavy query strings lose their parameters in the destination's referral data.

Values

Absolute URL

The full URL including scheme, host, path, and query string. Same-origin requests typically include the complete URL.

Referer: https://example.re/articles/http-headers?page=2

Origin only

The scheme and host without path or query string. Sent for cross-origin requests under the default browser policy.

Referer: https://example.re/

Empty or absent

The header is omitted entirely when the Referrer-Policy is set to no-referrer, when the link carries rel="noreferrer", when a <meta name="referrer"> tag on the page suppresses it, when the request comes from a bookmarked URL, when typing a URL directly into the address bar, or during HTTPS-to-HTTP downgrades under the default policy.

Example

A browser following a link from a search results page sends the search URL as the referrer. The server receiving the request sees where the visitor came from.

Referer: https://search.example.re/results?q=http+headers

A cross-origin request from a secure page sends only the origin portion under the default strict-origin-when-cross-origin policy.

Referer: https://example.re/

A resource loaded on the same origin includes the full path and query string in the referrer value.

Referer: https://example.re/docs/guide?section=headers

Google Search referrals

Organic-traffic reporting runs on this header. Google Search applies the origin referrer policy, so a click from a results page carries only the scheme and host, with no path and no query string. The search query never arrives in the Referer value. Analytics packages match these values to classify a visit as organic search from Google.

The value depends on where the click happened. Google Search on the web sends https://www.google.com/ or a local Google domain such as https://www.google.co.uk/, and the Google app on iOS sends the same values. The Google app on Android sends them too, except when the app opens the link in a browser tab, where the referrer takes an app form.

Referer: android-app://com.google.android.googlequicksearchbox/https/www.google.com

Discover traffic carries the value of the surface where Discover appeared, such as the Google app or Google Search on the web. Other Google services on the same origins, Google Images among them, send the same values as Search.

Log analysis matching these values counts only requests for landing pages. The browser also sends Referer when fetching images, stylesheets, and scripts, and on those requests the value is the site's own page URL rather than Google.

A visit arriving with no Referer gets filed as direct traffic. Private browsing and anti-fingerprinting protections, opening a result in a new tab in some browsers, moving from a native mobile search widget to an external browser, and privacy extensions or strict browser settings all strip the header. Referrer-based counts in logs and analytics therefore rarely match the click numbers in Google Search Console one to one.

Crawlers and Referer

Most crawlers send no Referer at all. Googlebot fetches every page without the header, so a referrer in a crawler request is not a sign of a human click. DuckDuckBot sends the header on every request and GPTBot on a share of its requests, naming the page where the crawler found the link. Log analysis keyed on referrers needs to separate those bot hits from visitor traffic by user agent first.

Verified crawler probe

Probe data from verified crawler traffic (November 2026 snapshot) shows which bots send Referer when requesting pages. Yes marks the header on at least nine of ten sampled requests from the bot, Sometimes marks a smaller share, and No marks absence.

Crawler Sends Referer
Amazonbot No
Applebot No
Baiduspider No
Bingbot No
ClaudeBot No
DuckDuckBot Yes
GPTBot Sometimes
Googlebot No
Googlebot (smartphone) No
Googlebot-Image No
Meta-ExternalAgent No
Meta-WebIndexer Sometimes
OAI-SearchBot No
PerplexityBot No
SeznamBot No
YandexBot No
YandexFavicons No

See also

Last updated: November 18, 2026