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.
Related Headers
Origin
Indicates where the request originates from. Used in CORS to determine if the server allows cross-origin requests.
Host
Specifies the domain name of the server and optionally the TCP port number. Mandatory in HTTP/1.1 requests.
X-Forwarded-For
Identifies the originating IP address of a client connecting through a proxy or load balancer. The standard Forwarded header is preferred in modern applications.