A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
Meta referrer: Difference between revisions
(Created page with '==Overview== This document describes a proposal the "referrer" metadata name. Using the referrer metadata attribute, a document can control the behavior if the Referer HTTP hea...') |
No edit summary |
||
Line 3: | Line 3: | ||
This document describes a proposal the "referrer" metadata name. Using the referrer metadata attribute, a document can control the behavior if the Referer HTTP header attached to requests that originate from the document. | This document describes a proposal the "referrer" metadata name. Using the referrer metadata attribute, a document can control the behavior if the Referer HTTP header attached to requests that originate from the document. | ||
== | ==Specification== | ||
referrer | Keyword: <code>referrer</code> | ||
The referrer metadata attribute can have one of four values: | |||
* <code>never</code> (Never include a <code>Referer</code> header.) | |||
* <code>always</code> (Always include a <code>Referer</code> header.) | |||
* <code>origin</code> (Use the document's origin in the <code>Referer</code> header.) | |||
* <code>default</code> (Use the user agent's default policy for whether to include a <code>Referer</code> header.) | |||
Revision as of 21:23, 25 October 2011
Overview
This document describes a proposal the "referrer" metadata name. Using the referrer metadata attribute, a document can control the behavior if the Referer HTTP header attached to requests that originate from the document.
Specification
Keyword: referrer
The referrer metadata attribute can have one of four values:
never
(Never include aReferer
header.)always
(Always include aReferer
header.)origin
(Use the document's origin in theReferer
header.)default
(Use the user agent's default policy for whether to include aReferer
header.)
Examples
This meta element instructs the user agent to omit the Referer
header in all HTTP requests that originate from the document containing the element:
<meta name="referrer" content="never">
This meta element instructs the user agent to include the document's origin in the Referer
header rather than the full URL of the document.
<meta name="referrer" content="origin">