跳转到主要内容

From header

The HTTP From {{Glossary("request header")}}header contains an Internet email address for an administrator who controls an automated user agent.

If you are running a robotic user agent (a web crawler, for example), the From header must be sent in requests so you can be contacted if problems occur, such as a bot sending excessive, unwanted, or invalid requests.

[!WARNING]WARNING: You must not use the From header for access control or authentication.

Header type {{Glossary("[Request header")}}header](https://developer.mozilla.org/en-US/docs/Glossary/Request%20header)
{{Glossary("[Forbidden request header")}}header](https://developer.mozilla.org/en-US/docs/Glossary/Forbidden%20request%20header) No

Syntax

From: <email>

Directives

  • <email>
    • : A machine-usable email address.

Examples

From: webmaster@example.org

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{HTTPHeader("Host")}}Host