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
Line 4: | Line 4: | ||
==Specification== | ==Specification== | ||
===Syntax=== | |||
Keyword: <code>referrer</code> | Keyword: <code>referrer</code> | ||
Line 14: | Line 16: | ||
Let ''directive'' be the value of the <code>content</code> attribute with <code>LWS</code> stripped and covered to lower case. If ''directive'' is none of the strings listed above, the user agent MUST act as if ''directive'' is the string <code>default</code>. | Let ''directive'' be the value of the <code>content</code> attribute with <code>LWS</code> stripped and covered to lower case. If ''directive'' is none of the strings listed above, the user agent MUST act as if ''directive'' is the string <code>default</code>. | ||
===Semantics=== | |||
If the ''directive'' is a string other than <code>default</code>, then Step 3 of ''Fetching resources'' in the HTML standard [HTML] is altered as follows: | |||
* <code>never</code>: | |||
==Examples== | ==Examples== |
Revision as of 21:42, 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
Syntax
Keyword: referrer
The referrer metadata attribute can have one of four values:
never
always
origin
default
Let directive be the value of the content
attribute with LWS
stripped and covered to lower case. If directive is none of the strings listed above, the user agent MUST act as if directive is the string default
.
Semantics
If the directive is a string other than default
, then Step 3 of Fetching resources in the HTML standard [HTML] is altered as follows:
never
:
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">