DELAPARRA
Index
Color
NL
Category: HTTP headers

Referer

Explained by Updated

What is Referer?

Referer: The URL of the page that initiated the request. (Note the historic misspelling — it is "Referer", not "Referrer".) The Referer header tells a server which page the visitor came from, such as the page with the link they clicked. The spelling with one "r" is a famous typo from the original HTTP specification that stuck.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Referer

How is Referer used in practice?

Analytics tools use it to see where traffic comes from, and some servers use it as a weak check that a request came from their own site.

What should you keep in mind with Referer?

It can leak information. A full URL can contain search terms, IDs or even tokens, and sending it to every external site you link to is a privacy risk. Browsers now default to sending only the origin for cross-site requests, and you can control this with the Referrer-Policy header. Never rely on the referer for security, because clients can change or omit it.

What does an example of Referer look like?

Referer: https://example.com/products/

At a glance

CategoryHTTP headers
Explained by
Updated

More HTTP headers terms

All terms starting with R

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.