Visual RFC.
ALL RFCs / RFC 9116
Read the RFC ↗
RFC 9116 / SECURITY.TXT DISCLOSURE CONTACTS

Respect host scope and Canonical locations

05

A file retrieved for one host does not automatically cover related hosts. The optional Canonical field lists intended retrieval URIs and can help detect a copied or misplaced file, but does not by itself establish trust in every listed location.

RFC 9116 · § 3.1EXAMPLE
3 / 3
Respect host scope and Canonical locationsA file retrieved from example.com is scoped to that host; a stopped branch prevents automatic inheritance to sub.example.com. A separate state checks exact equality between a fictional retrieval URI and the Canonical URI, explicitly marking this as a context check rather than trust proof. The copied-file case is retrieved at sub.example.com while still listing only example.com: a mismatch stops use under SHOULD NOT trust guidance. Canonical does not delegate scope to every listed URI.Check the host and intended file locationRetrieved from a different hosthttps://sub.example.com/.well-known/security.txtCanonical: https://example.com/.well-known/security.txtretrieval URI not listedSHOULD NOT trust the copied fileA Canonical line is not proof of ownership
03
Distrust a copied file at an unlisted location.

At sub.example.com the copied file still lists only example.com as Canonical. The mismatch triggers the SHOULD NOT trust guidance before a report is sent.

Source for this drawing: RFC 9116 · Read RFC section 3.1 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Terms in this drawing
Host scope
Which domain or IP the retrieved file applies to.
Canonical
An optional list of intended file locations, not automatic cross-host authorization.
Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

A security.txt file MUST apply only to the domain or IP address in its retrieval URI, not its parent domains or subdomains. It MAY also apply to the publishing organization’s products and services.

  • A security.txt file MUST apply only to the domain or IP address in its retrieval URI, not its parent domains or subdomains. It MAY also apply to the publishing organization’s products and services.
  • For example.com, the file is not automatically inherited by sub.example.com or www.example.com. The organization SHOULD use Policy to explain the scope and details of its disclosure process.
  • Canonical is optional and can repeat. Web Canonical values MUST begin with https://. If Canonical appears and the retrieval URI is absent from all its values, the contents SHOULD NOT be trusted.
  • A listed Canonical URI MUST NOT be interpreted to make the file apply to every canonical location listed. Researchers SHOULD use an additional trust mechanism, such as a digital signature, to decide that a particular URI is applicable.
  • A redirect does not justify blindly trusting a new host. Inspect the redirect chain and the resulting file’s location and trust context before using its contacts.
DETAILS

The diagram separately tests host scope and exact fictional Canonical URI membership. It is not a general URL-normalization algorithm, proof of domain ownership, wildcard delegation or permission to test subdomains. A matching Canonical value passes one necessary context check; it does not authenticate the signer or the reporting destination.

Read the RFC section ↗

All chapters in RFC 9116

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗