Back to HTTP Headers
Request

HTTP Referer Header

Contains the address of the previous page from which the current page was requested. Used for analytics, logging, and cache optimization.

Purpose

Tells the server which page or site referred the user, useful for analytics, access control, and cache optimization.

Referer: <url> Example: Referer: https://google.com/search?q=api+tools Example: Referer: https://apitiming.com/api-checker

Code Examples

See how to use the Referer header in different tools and languages.

curl -H "Referer: https://google.com" https://api.example.com/data
curl -e "https://apitiming.com" https://api.example.com/resource

Related Headers

Test Your APIs

referer headerhttp refererhttp headers guide