Referer

The URL of the page that linked to the requested resource. Used for analytics and referrer policy.

Request

Syntax

Referer: <url>

Example values

ValueExplanation
https://example.com/pageFull URL of referring page
(absent)Direct navigation, privacy mode, or Referrer-Policy

cURL usage

curl -H "Referer: https://example.com" https://api.example.com/track

Common mistakes

Referer can be stripped by browser; don't rely on it for security.

Related headers

Tools

HTTP Header Viewer →