Skip to main content

Namespaces for the Robots Exclusion Protocol
draft-kelley-rep-namespaces-00

Document Type Active Internet-Draft (individual)
Author Kevin Kelley
Last updated 2026-11-16
RFC stream (None)
Intended RFC status (None)
Formats
Stream Stream state (No stream defined)
Consensus boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date (None)
Responsible AD (None)
Send notices to (None)
draft-kelley-rep-namespaces-00
Network Working Group                                          K. Kelley
Internet-Draft                                                 Anthropic
Updates: 9309 (if approved)                             16 November 2026
Intended status: Standards Track                                        
Expires: 20 May 2027

              Namespaces for the Robots Exclusion Protocol
                     draft-kelley-rep-namespaces-00

Abstract

   This document updates RFC 9309, the Robots Exclusion Protocol, so
   that a _selector_ (User-Agent: line) in a robots.txt group can carry
   a _label_ that is optionally qualified by a _namespace_.  The product
   tokens of that standard are described here as unqualified labels;
   labels qualified by a namespace are written __<namespace>_<label>.
   It reserves the sequence __ for that purpose, establishes a registry
   of namespaces, and specifies how namespaced labels are matched.  It
   also defines terminology for existing parts of robots.txt files.
   Existing robots.txt files are interpreted as before, and deployed
   parsers ignore namespaced labels.

Discussion Venues

   This note is to be removed before publishing as an RFC.

   Source for this draft and an issue tracker can be found at
   https://github.com/kelleyk/draft-kelley-rep-namespaces.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 20 May 2027.

Kelley                     Expires 20 May 2027                  [Page 1]
Internet-Draft               REP Namespaces                November 2026

Copyright Notice

   Copyright (c) 2026 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Revised BSD License text as
   described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Revised BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Motivation  . . . . . . . . . . . . . . . . . . . . . . .   4
     1.2.  Example . . . . . . . . . . . . . . . . . . . . . . . . .   4
   2.  Conventions and Definitions . . . . . . . . . . . . . . . . .   5
   3.  Labels and Namespaces . . . . . . . . . . . . . . . . . . . .   7
     3.1.  Syntax  . . . . . . . . . . . . . . . . . . . . . . . . .   8
     3.2.  Groups with Multiple Selectors  . . . . . . . . . . . . .  10
     3.3.  Reserved Selector Values  . . . . . . . . . . . . . . . .  11
   4.  Defining a Namespace  . . . . . . . . . . . . . . . . . . . .  12
   5.  Matching Namespaced Labels  . . . . . . . . . . . . . . . . .  13
   6.  Policy Tokens . . . . . . . . . . . . . . . . . . . . . . . .  14
     6.1.  Independence from Crawler Rules . . . . . . . . . . . . .  15
   7.  Deployment Considerations . . . . . . . . . . . . . . . . . .  15
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .  16
   9.  Privacy Considerations  . . . . . . . . . . . . . . . . . . .  16
   10. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  16
     10.1.  REP Namespaces Registry  . . . . . . . . . . . . . . . .  16
       10.1.1.  Guidance for Designated Experts  . . . . . . . . . .  17
   11. References  . . . . . . . . . . . . . . . . . . . . . . . . .  18
     11.1.  Normative References . . . . . . . . . . . . . . . . . .  18
     11.2.  Informative References . . . . . . . . . . . . . . . . .  18
   Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . .  19
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  19

1.  Introduction

   [ROBOTS] originated as a mechanism that allowed service operators to
   provide machine-readable traffic-management signals to automated
   clients; in other words, it allowed websites to direct robots to
   paths that they wanted those robots to visit, and away from paths
   that they did not.

Kelley                     Expires 20 May 2027                  [Page 2]
Internet-Draft               REP Namespaces                November 2026

   Because [ROBOTS] is the only widely-deployed standard that provides
   machine-readable signals to automated clients, it has come to be used
   to communicate a variety of other things as well.  More such uses are
   under active consideration, notably in the IETF AI Preferences
   (AIPREF) Working Group [AIPREF].  This is understandable, but it also
   leads to ambiguity and confusion.

   In addition, because [ROBOTS] was a de facto standard for decades
   before the RFC was written, the parsers actually deployed predate it,
   diverge from it, and diverge from one another.  For example, some
   merge groups that name the same product token and some do not, some
   match product tokens by prefix or substring rather than exactly, some
   match line names by prefix, and some end a group at a blank line.

   Changing the format safely is therefore difficult.  Any extension has
   to be ignored by every one of those parsers, has to leave unchanged
   how every one of them reads the lines that are already there, and has
   to mean the same thing to every consumer that does implement it,
   without relying on any behavior the deployed parsers disagree about.

   In [ROBOTS], a group consists of one or more User-Agent: lines, which
   this document names _selectors_, followed by one or more rules
   (Allow: and Disallow: lines).  A selector may either be a wildcard or
   contain a product token, which is a name that the robot chooses for
   itself and that "SHOULD be a substring of the identification string
   that the crawler sends to the service" (Section 2.2.1 of [ROBOTS]).

   This document updates [ROBOTS] to generalize non-wildcard selectors
   so that each carries a _label_ that is optionally qualified by a
   _namespace_.  An unqualified label is in the default namespace; it is
   exactly the product token of [ROBOTS] and keeps its existing meaning.
   A _namespaced label_ is written __<namespace>_<label>.

   Each namespace is registered with IANA, and the specification that
   registered it defines what labels the namespace contains and their
   semantics (Section 3).

   A namespaced label stays within the alphabet that [ROBOTS] allows for
   product tokens (a-z, A-Z, _, -).  This document therefore introduces
   no new directive names and no new characters; the path language,
   longest-match precedence, and group structure defined by [ROBOTS] are
   not changed.

   As a result, the wide variety of existing parsers deployed across the
   Internet will continue to interpret traffic-management signals as
   they did previously, and will ignore selectors for a namespaced label
   as they would any selector for a product token they do not recognize.
   In addition, a group's selectors can freely combine namespaced labels

Kelley                     Expires 20 May 2027                  [Page 3]
Internet-Draft               REP Namespaces                November 2026

   from one or more namespaces with product tokens.  This avoids
   unnecessary duplication in robots.txt files, which are size-
   constrained.

   Equally importantly, people who author robots.txt files, and people
   who build software that consumes them, keep the semantics they
   already know: a group for a namespaced label is written, read, and
   evaluated like any other group, so the mental model they already have
   carries over unchanged.

1.1.  Motivation

   The immediate need for namespaced labels comes from the AIPREF
   Working Group, which is defining a vocabulary of usage preferences
   [VOCAB] and means of associating those preferences with content
   [ATTACH], including in robots.txt.

   The goal of that work is to allow a service operator to bind usage
   preferences (e.g., "no AI training") to paths.

   Such a preference is about use, not a traffic-management signal; the
   two are intentionally separate.  Ordinary rules for a crawler's own
   product token still govern fetching, and nothing about the preference
   changes that signaling; the two types of signals are independent and
   orthogonal.

   The Working Group's attachment needs could be addressed by
   registering a usage namespace, with labels corresponding to the
   vocabulary terms it standardizes.

   A label used this way is an example of a _policy token_ Section 6.

1.2.  Example

   This section is not normative.  It uses the example namespace, which
   is reserved for documentation (Section 10), and treats it as though a
   specification had defined labels foo and bar in it.

   User-Agent: *
   Disallow: /private/

   User-Agent: ExampleBot
   Disallow: /search/

   User-Agent: __example_foo
   Disallow: /articles/

Kelley                     Expires 20 May 2027                  [Page 4]
Internet-Draft               REP Namespaces                November 2026

   The first two groups are ordinary: the crawler ExampleBot obeys the
   second, and other crawlers the first.  The third group's selector
   carries the namespaced label __example_foo.  A consumer that
   implements the namespace looks that label up exactly as a crawler
   looks up its product token, and finds /articles/ disallowed and every
   other path allowed; what "allowed" and "disallowed" express is
   defined by the namespace's specification (Section 4).  Had the file
   no third group, that specification would also decide whether the
   first group is consulted instead (Section 5).  A parser that does not
   implement this document sees a group for a product token that no
   crawler uses, and ignores it.

   User-Agent: ExampleBot
   User-Agent: __example_bar
   Disallow: /drafts/

   User-Agent: Example__Bot
   Disallow: /

   Here the first group has two selectors and matches both the product
   token ExampleBot and the namespaced label __example_bar
   (Section 3.2).  The second group's selector is invalid, because its
   value contains __ and is not a well-formed namespaced label.  It
   matches no label, so Disallow: / applies to nothing, but it still
   begins a new group: that rule is not added to the group before it
   (Section 3.3).

2.  Conventions and Definitions

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

   This document uses the ABNF of [RFC5234], including its core rule
   ALPHA, and the rule identifier from Section 2.2 of [ROBOTS].

   service operator:  An entity that operates a service, such as a
      website, and publishes a robots.txt file for it.  [ROBOTS] calls
      this party a "service owner".

   consumer:  An entity that interprets signals that a service operator
      expresses in robots.txt by looking up a product token or
      namespaced label.  Consumers are often crawlers or other types of
      robots.

   parser:  In the sense of [ROBOTS]; software that parses robots.txt

Kelley                     Expires 20 May 2027                  [Page 5]
Internet-Draft               REP Namespaces                November 2026

      files and matches labels (e.g. product tokens) and paths against
      their rules.

   identification string:  In the sense of Section 2.2.1 of [ROBOTS];
      the string a crawler sends to identify itself.  In the case of
      HTTP, the User-Agent header field (Section 10.1.5 of [HTTP]).

   selector:  A User-Agent: line (Section 2.2.1 of [ROBOTS];
      startgroupline in the grammar of Section 2.2 of [ROBOTS]).  A
      selector carries a label or the value *.

   wildcard selector:  A selector that carries the value * (i.e., User-
      Agent: *).  [ROBOTS] calls this 'a user-agent line with the "*"
      value'.

   wildcard fallback:  The behavior of Section 2.2.1 of [ROBOTS] under
      which a consumer that finds no group matching a label obeys the
      group(s) with a wildcard selector instead.  The fallback applies
      only when no other group matches the label; the rules of a
      wildcard selector's group are never combined with those of a group
      that does match it.  A group whose selectors include both * and
      the label in question matches that label through the latter, and
      is not a use of the fallback.

   robot:  An automated client operated by a single party and whose
      behavior is controlled, directly or indirectly, by that party.
      Crawlers are classic examples of robots; browsers and other agents
      acting on behalf of a user are not.

   rule:  As in Section 2.1 of [ROBOTS]; an Allow: or Disallow: line.

   group:  One or more selectors followed by one or more rules
      (Section 2.1 of [ROBOTS]).  The selectors within a group are
      disjunctive; in other words, a group _matches_ a label if any of
      its selectors does (Section 3.2).

   label:  A name within a namespace; what a selector carries, other
      than * (Section 3.1).  Every label belongs to exactly one
      namespace: an unqualified label, which is a product token, belongs
      to the default namespace, and a qualified label to the namespace
      that qualifies it.  The qualifier is not part of the label.
      Labels MUST NOT contain the sequence __.

   namespace:  A set of labels defined by one specification.  The

Kelley                     Expires 20 May 2027                  [Page 6]
Internet-Draft               REP Namespaces                November 2026

      _default namespace_ is the set of unqualified labels; it is
      defined by Section 2.2.1 of [ROBOTS], has no name, and is not
      registered.  Every other namespace has a registered name that
      qualifies its labels, and the specification that registers it
      defines the labels in it and their meaning (Section 4,
      Section 10).

   product token:  In the sense of Section 2.2.1 of [ROBOTS]; the name
      that a crawler chooses for itself and uses to find the groups that
      apply to it.  In the terms of this document, a product token is an
      unqualified label, which is to say a label in the default
      namespace: "product token", "unqualified label", and "label in the
      default namespace" all name the same thing.  This document does
      not change what a product token means or the alphabet it is drawn
      from (letters, _, -); it gives the product-token grammar rule that
      same meaning (Section 3.1).

   namespaced label:  A label in a namespace other than the default
      namespace, written together with the namespace that qualifies it
      as __<namespace>_<label>; the namespaced-label rule of
      Section 3.1.  The term names the whole qualified value; the label
      itself is the part that follows the namespace (ns-label).

   invalid selector:  A selector whose value is not a selector-value
      (Section 3.1).

   policy token:  A label, whether a product token or a namespaced
      label, that a consumer looks up regardless of whether it appears
      in the identification string of any outbound request.  Existing
      examples describe how content will be used rather than whether it
      may be fetched (Section 6).

   proprietary policy token:  A policy token that is a product token
      documented by a single consumer.  Some service operators already
      include these in their robots.txt files.  The consumer that
      defines a proprietary policy token SHOULD clearly and publicly
      describe how it interacts with other mechanisms that consumer
      supports (Section 6).

3.  Labels and Namespaces

   This section updates Sections 2.1, 2.2, and 2.2.1 of [ROBOTS].

Kelley                     Expires 20 May 2027                  [Page 7]
Internet-Draft               REP Namespaces                November 2026

   A group is one or more selectors followed by one or more rules.  A
   selector carries either the value * or a label, and every label
   belongs to a namespace.  An unqualified label belongs to the _default
   namespace_ and is a product token exactly as [ROBOTS] describes; the
   default namespace is defined by [ROBOTS] and nothing in this document
   changes it.  A qualified label belongs to the registered namespace
   that qualifies it.

3.1.  Syntax

   The grammar of Section 2.2 of [ROBOTS] uses the rule name product-
   token for the whole value of a User-Agent: line, including the value
   *, although its prose uses "product token" only for the name of a
   crawler.  This document brings the grammar into line with the prose:
   the value of a selector is a wildcard, a product token, or a
   namespaced label, and product-token names only the second of those.

   The startgroupline and product-token rules of Section 2.2 of [ROBOTS]
   are replaced by the following rules; its identifier rule is
   unchanged.

   startgroupline   = *WS "user-agent" *WS ":" *WS
                      ( selector-value / invalid-value ) EOL

   selector-value   = "*" / product-token / namespaced-label
   invalid-value    = identifier  ; that is not a selector-value

   product-token    = word *( "_" word )
   word             = 1*( ALPHA / "-" )

   namespaced-label = "__" namespace "_" ns-label
   namespace        = ALPHA [ *( ALPHA / "-" ) ALPHA ]
   ns-label         = ns-word *( "_" ns-word )
   ns-word          = ALPHA [ *( ALPHA / "-" ) ALPHA ]

   A selector whose value is a selector-value is valid: * makes it a
   wildcard selector, a product-token is a product token in the sense of
   [ROBOTS], and a namespaced-label is a namespaced label in the named
   namespace, whose ns-label part is the label.  A selector whose value
   is an invalid-value is an _invalid selector_; it begins or continues
   a group exactly as any other startgroupline does, and matches no
   label (Section 3.3).

Kelley                     Expires 20 May 2027                  [Page 8]
Internet-Draft               REP Namespaces                November 2026

   The set of lines that startgroupline accepts is unchanged: every
   selector-value is an identifier or *. The invalid values are the
   identifiers that contain __ other than as a well-formed namespaced-
   label, or that begin or end with _. The grammar of [ROBOTS] admitted
   these as product tokens and this document does not; no product token
   in use is known to be among them (Section 7).

   No namespace and no label contains __, and a namespace contains no _
   at all, so the leading __ unambiguously introduces a namespace and
   the first _ after it unambiguously ends it.  Namespaces and labels,
   product tokens included, are compared case-insensitively.

   For reference, the complete formal syntax of Section 2.2 of [ROBOTS]
   as amended by this document is reproduced below.

   robotstxt = *(group / emptyline)
   group = startgroupline                ; We start with a user-agent
                                         ; line
          *(startgroupline / emptyline)  ; ... and possibly more
                                         ; user-agent lines
          *(rule / emptyline)            ; followed by rules relevant
                                         ; for the preceding
                                         ; user-agent lines

   ; Changed by this document: the value was product-token, which
   ; was defined as identifier / "*".
   startgroupline = *WS "user-agent" *WS ":" *WS
                    ( selector-value / invalid-value ) EOL

   rule = *WS ("allow" / "disallow") *WS ":"
         *WS (path-pattern / empty-pattern) EOL

   ; parser implementors: define additional lines you need (for
   ; example, Sitemaps).

   path-pattern = "/" *UTF8-char-noctl   ; valid URI path pattern
   empty-pattern = *WS

   identifier = 1*(%x2D / %x41-5A / %x5F / %x61-7A)

   ; Changed or added by this document. A startgroupline that
   ; carries an invalid-value is an invalid selector; it still
   ; delimits a group, and matches no label.
   selector-value   = "*" / product-token / namespaced-label
   invalid-value    = identifier  ; that is not a selector-value
   product-token    = word *( "_" word )
   word             = 1*( ALPHA / "-" )
   namespaced-label = "__" namespace "_" ns-label

Kelley                     Expires 20 May 2027                  [Page 9]
Internet-Draft               REP Namespaces                November 2026

   namespace        = ALPHA [ *( ALPHA / "-" ) ALPHA ]
   ns-label         = ns-word *( "_" ns-word )
   ns-word          = ALPHA [ *( ALPHA / "-" ) ALPHA ]

   comment = "#" *(UTF8-char-noctl / WS / "#")
   emptyline = EOL
   EOL = *WS [comment] NL ; end-of-line may have
                          ; optional trailing comment
   NL = %x0D / %x0A / %x0D.0A
   WS = %x20 / %x09

   ; UTF8 derived from RFC 3629, but excluding control characters

   UTF8-char-noctl = UTF8-1-noctl / UTF8-2 / UTF8-3 / UTF8-4
   UTF8-1-noctl = %x21 / %x22 / %x24-7F ; excluding control, space, "#"
   UTF8-2 = %xC2-DF UTF8-tail
   UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2UTF8-tail /
            %xED %x80-9F UTF8-tail / %xEE-EF 2UTF8-tail
   UTF8-4 = %xF0 %x90-BF 2UTF8-tail / %xF1-F3 3UTF8-tail /
            %xF4 %x80-8F 2UTF8-tail

   UTF8-tail = %x80-BF

               Figure 1: Formal syntax of RFC 9309 as amended

3.2.  Groups with Multiple Selectors

   A single group MAY have several selectors (Section 2.2 of [ROBOTS]),
   and those selectors MAY carry labels from the same or different
   namespaces, including the default namespace (i.e., they may be
   product tokens rather than namespaced labels).

   As in [ROBOTS], selectors in a group are disjunctive; in other words,
   the group matches a label if any one of its selectors does.  This is
   a consequence of the need to be backwards-compatible with deployed
   software: a parser that does not implement this document applies a
   group to the product tokens it names exactly as [ROBOTS] specifies,
   whatever else the group's selectors carry.  Accordingly, no
   specification defining a namespace can alter whether a group matches
   a product token or what its rules mean for one.

   A specification defining a namespace MAY describe other behavior
   among its own labels, or between its labels and those of another
   namespace, when they appear together in a group or across groups.  A
   specification that does so MUST specifically account for consumers
   that do not implement this document, for consumers that implement
   only some of the namespaces involved, and for the disjunctive reading
   that such consumers will apply to whatever they do recognize, and

Kelley                     Expires 20 May 2027                 [Page 10]
Internet-Draft               REP Namespaces                November 2026

   MUST show that the file means something acceptable to its author
   under each of those readings.  It SHOULD NOT make the meaning of its
   labels depend on which product tokens share their group, since that
   would scope the namespace by crawler through group membership and
   invite service operators to add product tokens to a group, creating
   crawl rules they did not intend.

3.3.  Reserved Selector Values

   Every identifier that contains the sequence __ at any position, or
   that begins or ends with _, is reserved to this document and to the
   namespaces registered under it.  Such a value is not a product token;
   it either parses as a namespaced-label or makes its selector an
   invalid selector (Section 3.1).

   The reservation covers __ at any position, not only as a prefix,
   because some deployed parsers match more flexibly than [ROBOTS]
   specifies.  Specifically, they treat a selector as matching when the
   value it carries is a prefix of, or a substring of, the crawler's
   product token or its whole identification string.  Were only the
   prefix reserved, a crawler could name itself Foo__example_foo, and
   under substring matching the group for the namespaced label
   __example_foo would be applied to that crawler.  Reserving the
   sequence everywhere makes accidental matches implausible without
   requiring any deployed parser to change.

   The reservation cannot help where a parser matches in the other
   direction, treating a selector as matching when the crawler's product
   token is a prefix or a substring of the value the selector carries.
   Under such a parser, a crawler named example or foo would match a
   selector carrying __example_foo.  Because of substring matching, a
   namespace name SHOULD be compared against a corpus of known or likely
   product tokens before it is registered (Section 10.1.1), and so
   SHOULD each label before it is defined in a namespace (Section 4).

   No label contains __, whichever namespace it is in.  In particular, a
   product token MUST NOT contain __, the label in a namespaced label
   (its ns-label part) MUST NOT contain __, and a namespace MUST NOT
   contain _ at all.  Using - as the word separator in both namespaces
   and labels is RECOMMENDED.

   A crawler SHOULD NOT send an identification string that contains __.

   A consumer MUST NOT document a proprietary policy token that contains
   __ (Section 6).

Kelley                     Expires 20 May 2027                 [Page 11]
Internet-Draft               REP Namespaces                November 2026

   A consumer MUST treat an invalid selector as matching no label, and
   MUST otherwise process it as it would any other selector; it still
   begins or continues a group, and the rules that follow it belong to
   that group.

   A consumer MUST likewise treat a selector carrying a well-formed
   namespaced label as matching no label when it does not recognize the
   namespace or does not implement it.

   Service operators MUST NOT publish robots.txt files that contain
   invalid selectors.

4.  Defining a Namespace

   The default namespace is defined by [ROBOTS] and is outside the scope
   of this section: its labels are product tokens, the wildcard fallback
   applies to them, and allowed and disallowed mean what Section 2.2.2
   of [ROBOTS] says.  Every other namespace identifies a specification,
   recorded in the registry of Section 10, and every label in it is
   defined by, and only by, that specification.  Beyond the syntax of
   Section 3.1 and the exact matching of Section 5, which hold for every
   namespace, that specification decides the remaining questions,
   including whether the wildcard fallback applies to its labels.  This
   section lists them.

   Label syntax:  The specification MUST define the syntax of labels
      within its namespace, within the ns-label rule of Section 3.1, and
      MAY establish a registry of labels.  Because of substring
      matching, each label SHOULD be compared against a corpus of known
      or likely product tokens before it is defined or registered, and
      SHOULD neither be one nor contain one (Section 3.3).

   Wildcard fallback:  The specification MUST state whether the wildcard
      fallback applies to labels in its namespace (Section 5): always
      ("yes"), never ("no"), or under conditions the specification sets
      out ("specification-defined").  Where it applies, it is the
      fallback of Section 2.2.1 of [ROBOTS] and nothing more: a consumer
      that finds no group matching the namespaced label obeys the
      group(s) with a wildcard selector, exactly as a crawler whose
      product token matches no group does, and a consumer that does find
      a matching group does not consult wildcard groups at all.  Where
      it does not apply, a consumer that finds no matching group has
      been given no signal (see "No matching selector" below).  Nearly
      every robots.txt file published today has a group with a wildcard
      selector, written with crawling in mind and without knowledge of
      any namespace.  A namespace whose labels express something the
      authors of those groups cannot have intended SHOULD specify that
      the wildcard fallback does not apply to its labels, so that a file

Kelley                     Expires 20 May 2027                 [Page 12]
Internet-Draft               REP Namespaces                November 2026

      written without knowledge of the namespace says nothing in it; the
      usage namespace anticipated in Section 1.1 is expected to take
      this position.  A namespace MAY instead specify that the wildcard
      fallback does apply, where reading existing wildcard groups under
      it is the intended effect; its specification SHOULD then explain
      why that reading is safe for files written before it existed.  A
      namespace whose answer depends on the label, on the content of the
      file, or on anything else MUST set out those conditions
      completely, such that two consumers reading the same file reach
      the same answer.

   Allowed and disallowed:  The specification MUST define what is
      expressed when lookup finds a path allowed, and when it finds a
      path disallowed, in the group(s) that match a namespaced label in
      its namespace (Section 5).

   No matching selector:  The specification MAY define what is expressed
      when no selector matches such a namespaced label (Section 5).  If
      it does not, then the robots.txt file expresses nothing in the
      context of that specification.

   No matching rule:  The specification MAY define what, if anything, is
      expressed when a selector matches such a namespaced label but no
      rule in the matching group(s) matches the path.  If it does not,
      then per [ROBOTS], the expression is equivalent to an Allow: rule.

   Interaction with other labels:  The specification MAY describe
      behavior other than disjunction among its own labels or between
      its labels and those of other namespaces, within the limits of
      Section 3.2: it MUST account for consumers that do not implement
      this document or that implement only some of the namespaces
      involved, it MUST NOT alter whether a group matches a product
      token or what a group's rules mean for one, and it SHOULD NOT make
      the meaning of its labels depend on which product tokens share
      their group.

   Relationship to rules for product tokens:  The specification SHOULD
      state how rules under its labels relate to rules under a
      consumer's own product token(s).  For a namespace used for policy
      tokens, Section 6 supplies that statement.

   This document registers no namespace for use.  It reserves the
   namespace example for documentation (Section 10).

5.  Matching Namespaced Labels

   This section updates Section 2.2.1 of [ROBOTS].

Kelley                     Expires 20 May 2027                 [Page 13]
Internet-Draft               REP Namespaces                November 2026

   To determine what has been expressed for a given path under a
   namespaced label, a consumer looks up the path and label combination
   as it would the combination of a path and a product token under
   Sections 2.2.1 and 2.2.2 of [ROBOTS], subject to the following.

   Consumers MUST match namespaced labels exactly, apart from case,
   regardless of their matching behavior for product tokens.  Prefix
   matches and substring matches MUST NOT be applied.

   If there is more than one group matching the label, the matching
   groups' rules are combined as Section 2.2.1 of [ROBOTS] specifies.

   If no group in the file matches the namespaced label, the namespace's
   specification decides whether the wildcard fallback applies
   (Section 4).  Where it applies and the file has a wildcard selector,
   the consumer obeys the group(s) with a wildcard selector as
   Section 2.2.1 of [ROBOTS] specifies for a product token that matches
   no group, and evaluates the path against their rules as described
   below.  Where it does not apply, or the file has no wildcard
   selector, no signal has been provided, and the namespace's
   specification gives that outcome its meaning (Section 4).

   A consumer MUST NOT consult a wildcard selector's group for a
   namespaced label in any other circumstance.  In particular, it MUST
   NOT apply the wildcard fallback where the namespace's specification
   does not provide for it, and it MUST NOT combine the rules of a
   wildcard selector's group with those of a group that matches the
   label.

   If the lookup finds that the path is disallowed, or finds that it is
   allowed, what has been expressed is likewise defined by the
   namespace's specification.  Path evaluation itself is exactly that of
   Section 2.2.2 of [ROBOTS], including longest-match precedence, the
   special characters of Section 2.2.3 of [ROBOTS], and the use of the
   allow rule when an allow and a disallow rule are equivalent.

   Implementers are cautioned that general-purpose robots.txt parsers
   apply the wildcard fallback to any label they find no other match
   for, and that several match by prefix or substring.  A consumer built
   on such a parser MUST configure or wrap it to comply with this
   section.

6.  Policy Tokens

   This section updates Section 2.2.1 of [ROBOTS].

Kelley                     Expires 20 May 2027                 [Page 14]
Internet-Draft               REP Namespaces                November 2026

   A policy token is a label, whether a product token or a namespaced
   label, whose RFC 9309 signals a consumer looks up regardless of
   whether it appears in the identification string of any outbound
   request (Section 2).  The recommendation in Section 2.2.1 of [ROBOTS]
   that a product token be a substring of the identification string
   applies to a product token that names a crawler; it does not apply to
   a policy token.

   Some crawler operators already publish policy tokens, e.g. ones that
   control how content is used rather than which crawler can fetch it.
   These vendor-specific policy tokens are called _proprietary policy
   tokens_.

   Consumers SHOULD interpret a proprietary policy token as they would
   in the absence of this document.  A consumer that documents a
   proprietary policy token SHOULD document whether the wildcard
   fallback applies to it, how its rules relate to rules for that
   consumer's crawler product tokens, and how they relate to any
   namespaces the consumer implements.

6.1.  Independence from Crawler Rules

   Consumers MUST interpret the RFC 9309 signals being expressed based
   on their own product token(s) exactly as they would in the absence of
   this document.  That is, ExampleBot still checks whether there are
   rules for ExampleBot; if there are, they still have the meaning
   described in [ROBOTS].

   Signals expressed through product tokens and through namespaced
   labels may coexist in the same robots.txt file, but they are
   independent and orthogonal unless the specification governing a
   namespace says otherwise (Section 4).

7.  Deployment Considerations

   A parser that implements only [ROBOTS] reads a namespaced label as it
   would any product token, finds that it matches no crawler it is asked
   about, and ignores the group as it would any group for a product
   token it does not recognize; where the group also has selectors
   carrying product tokens, it applies the group to those exactly as
   written.  No deployed file changes meaning, because no deployed file
   is known to use a reserved value: a survey of widely fetched
   robots.txt files conducted for this document found no selector value
   that contains __ or begins or ends with _.

Kelley                     Expires 20 May 2027                 [Page 15]
Internet-Draft               REP Namespaces                November 2026

   The constraints in Section 3.3 on crawler product tokens and
   identification strings cost existing crawlers nothing for the same
   reason: none is known to use __ today.  They exist to keep it that
   way.

   Service operators, and tools that check robots.txt files for them,
   SHOULD flag a namespaced label whose namespace is not registered, and
   SHOULD flag an invalid selector (Section 3.1), as these match nothing
   for any conforming consumer.

8.  Security Considerations

   The security considerations of Section 3 of [ROBOTS] apply to this
   mechanism.

9.  Privacy Considerations

   This document does not introduce any new privacy considerations.

10.  IANA Considerations

10.1.  REP Namespaces Registry

   IANA is requested to create a new registry titled "REP Namespaces" in
   a new "Robots Exclusion Protocol (REP)" registry group.

   The registration policy is Specification Required (Section 4.6 of
   [RFC8126]).

   Each registration consists of:

   Namespace:  The namespace string, conforming to Section 3.1.
      Namespaces are compared case-insensitively and recorded in
      lowercase.

   Label syntax:  The syntax of labels within this namespace, within the
      ns-label rule of Section 3.1, or a reference to the registry that
      enumerates permitted labels.

   Wildcard fallback:  One of "yes", "no", or "specification-defined":
      whether the wildcard fallback of Section 2.2.1 of [ROBOTS] applies
      to labels in this namespace when no other group matches them
      (Section 4).  For "specification-defined", the referenced
      specification MUST be consulted.

   Reference:  The specification that defines the namespace as Section 4
      requires.

Kelley                     Expires 20 May 2027                 [Page 16]
Internet-Draft               REP Namespaces                November 2026

   Change controller:  The party to whom IANA refers requests to change
      the registration.  For registrations made by IETF Stream
      documents, the IETF (iesg@ietf.org); otherwise, the person or
      organization that made the registration, or a successor it
      designates.

   The default namespace (Section 2) has no name and no entry in this
   registry.

   The registry initially contains one entry, which reserves the
   namespace example for use in documentation and examples:

   Namespace:  example

   Label syntax:  Reserved; any ns-label.

   Wildcard fallback:  Reserved; not applicable.

   Reference:  This document.

   Change controller:  IETF (iesg@ietf.org)

   The example namespace has no defined labels and expresses nothing.  A
   consumer treats a selector that carries one of its labels as it does
   a selector for any namespace it does not implement (Section 3.3).

   The first registration of a namespace for use is expected to be
   usage, made by the AI Preferences Working Group's attachment work
   (Section 1.1).

10.1.1.  Guidance for Designated Experts

   Section 4.6 of [RFC8126] asks that a registry using Specification
   Required give its designated experts clear review criteria.  The
   expert(s) review a request against the following:

   *  The referenced specification is permanent and readily available,
      and defines the namespace as Section 4 requires, addressing each
      item listed there rather than leaving any to implementers'
      discretion.

   *  The namespace name conforms to the namespace rule of Section 3.1,
      is recorded in lowercase, and is neither identical to nor
      confusingly similar to a registered namespace.

   *  The namespace name has been compared against a corpus of known or
      likely product tokens, and neither is one nor contains one
      (Section 3.3).

Kelley                     Expires 20 May 2027                 [Page 17]
Internet-Draft               REP Namespaces                November 2026

   *  The label syntax stays within the ns-label rule of Section 3.1.

   *  The "Wildcard fallback" field agrees with the specification, and,
      for "specification-defined", the specification sets out the
      conditions completely, such that two consumers reading the same
      file reach the same answer (Section 4).

   *  Where the specification describes interaction with other labels,
      it meets the requirements of Section 3.2.

   The expert(s) do not assess the merits of what a namespace's labels
   express; that is for the review process of the specification itself.
   They MAY ask for a different name where the requested one is likely
   to mislead, and SHOULD decline a request whose specification does not
   meet the criteria above, explaining which it fails.

11.  References

11.1.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/rfc/rfc2119>.

   [RFC5234]  Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
              Specifications: ABNF", STD 68, RFC 5234,
              DOI 10.17487/RFC5234, January 2008,
              <https://www.rfc-editor.org/rfc/rfc5234>.

   [RFC8126]  Cotton, M., Leiba, B., and T. Narten, "Guidelines for
              Writing an IANA Considerations Section in RFCs", BCP 26,
              RFC 8126, DOI 10.17487/RFC8126, June 2017,
              <https://www.rfc-editor.org/rfc/rfc8126>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/rfc/rfc8174>.

   [ROBOTS]   Koster, M., Illyes, G., Zeller, H., and L. Sassman,
              "Robots Exclusion Protocol", RFC 9309,
              DOI 10.17487/RFC9309, September 2022,
              <https://www.rfc-editor.org/rfc/rfc9309>.

11.2.  Informative References

   [AIPREF]   IETF, "AI Preferences (aipref) Working Group Charter",
              <https://datatracker.ietf.org/wg/aipref/about/>.

Kelley                     Expires 20 May 2027                 [Page 18]
Internet-Draft               REP Namespaces                November 2026

   [ATTACH]   Illyes, G. and M. Thomson, "Associating AI Usage
              Preferences with Content in HTTP", Work in Progress,
              Internet-Draft, draft-ietf-aipref-attach-05, 18 August
              2026, <https://datatracker.ietf.org/doc/draft-ietf-aipref-
              attach/>.

   [HTTP]     Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke,
              Ed., "HTTP Semantics", STD 97, RFC 9110,
              DOI 10.17487/RFC9110, June 2022,
              <https://www.rfc-editor.org/rfc/rfc9110>.

   [VOCAB]    Keller, P. and M. Thomson, "A Vocabulary For Expressing AI
              Usage Preferences", Work in Progress, Internet-Draft,
              draft-ietf-aipref-vocab-08, 13 September 2026,
              <https://datatracker.ietf.org/doc/draft-ietf-aipref-
              vocab/>.

Acknowledgments

   This work was informed by conversations with many members of the AI
   Preferences (AIPREF) Working Group and other members of the IETF
   community.  Thank you all, and please reach out to the author so that
   your name can be listed here.

Author's Address

   Kevin Kelley
   Anthropic
   Email: kelleyk-ietf@kelleyk.net

Kelley                     Expires 20 May 2027                 [Page 19]