Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1098273 of From

  • Revision slug: Web/HTTP/Headers/From
  • Revision title: From
  • Revision id: 1098273
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{HTTPSidebar}}

The From request header contains an Internet email address for a human user who controls the requesting user agent.

If you are running a robotic user agent (e.g. a crawler), the From header should be sent, so you can be contacted if problems occur on servers, such as if the robot is sending excessive, unwanted, or invalid requests.

You shouldn't use the From header for access control or authentication.

Header type {{Glossary("Request header")}}
{{Glossary("Forbidden header name")}} no

Syntax

From: <email>

Directives

<email>
A machine-usable email address.

Examples

From: [email protected]

Specifications

Specification Title
{{RFC("7231", "From", "5.5.1")}} Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

Browser compatibility

{{Compat}}

See also

  • {{HTTPHeader("Host")}}

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The <code><strong>From</strong></code> request header contains an Internet email address for a human user who controls the requesting user agent.</p>

<p>If you are running a robotic user agent (e.g. a crawler), the <code>From</code> header should be sent, so you can be contacted if problems occur on servers, such as if the robot is sending excessive, unwanted, or invalid requests.</p>

<div class="warning">
<p>You shouldn't use the <code>From</code> header for access control or authentication.</p>
</div>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Header type</th>
   <td>{{Glossary("Request header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name")}}</th>
   <td>no</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">
From: &lt;email&gt;
</pre>

<h2 id="Directives">Directives</h2>

<dl>
 <dt>&lt;email&gt;</dt>
 <dd>A&nbsp;machine-usable email address.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<pre>
From: [email protected]</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7231", "From", "5.5.1")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data/README.md">https://github.com/mdn/browser-compat-data/README.md</a> and send us a pull request.</p>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{HTTPHeader("Host")}}</li>
</ul>
Revert to this revision