Referer header - HTTP | MDN

Syntax

Directives

<url>

An absolute or partial address of the web page that makes the request. URL fragments (i.e., #section) and user info (i.e., username:password in https://username:password@example.com/foo/bar/) are not included. Origin, path, and query string may be included, depending on the referrer policy.

Examples

http

Referer: https://developer.mozilla.org/en-US/docs/Web/JavaScript
Referer: https://example.com/page?q=123
Referer: https://example.com/

Specifications

Specification
HTTP Semantics
# field.referer

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.