Well-known URIs
The /.well-known/ path prefix is a standardised place to publish site-level metadata. RFC 8615 defines it; IANA keeps the registry of allowed names.
What it is
A well-known URI is a resource served from a fixed path under /.well-known/ on your origin. RFC 8615 reserves this prefix so that protocols and tools can probe a site for capabilities without guessing URLs or polluting the root namespace.
https://example.com/.well-known/change-password
https://example.com/.well-known/security.txt
https://example.com/.well-known/webfinger?resource=acct:user@example.com
/.well-known/ is a URL namespace, not a directory you have to fill with files. Some well-known resources are static documents, but others are produced on demand: /.well-known/change-password is a redirect, and /.well-known/webfinger answers a query string. A client only cares about the path and the response, never whether a file sits on disk behind it, so any of these can be a dynamic route.
The names allowed under /.well-known/ are not arbitrary. IANA maintains a public registry; new names go through a review process. If you publish at a name that is not registered, you are claiming a path that may later be assigned to someone else.
Some deployed protocols use names before registration. This specification documents ACP discovery as one such convention, with its unregistered status explicit. That records implementation practice; it does not make the name registered or remove the allocation risk. Assess that risk when adopting such a protocol, and use registered names when designing a new discovery mechanism.
Why it matters
- Discoverability. Clients, browsers, password managers, federated servers, mobile operating systems and crawlers know exactly where to look. They do not need configuration per site.
- Interoperability. Standardised paths are what let Mastodon, Apple, Google, OpenID Connect, ACME (Let’s Encrypt) and others work across millions of sites without coordination.
- Stability. The reserved prefix keeps protocol metadata out of the way of your application’s routing. You will not accidentally collide with
/security.txtif it lives under/.well-known/.
Some capabilities span several well-known URIs that reference each other, so a client can follow the chain with no prior configuration. OAuth 2.0 discovery is the clearest example: a protected resource describes itself at /.well-known/oauth-protected-resource and names its authorisation server(s), whose own metadata lives at /.well-known/oauth-authorization-server — or /.well-known/openid-configuration for OpenID Connect.
How to implement
- Serve the resource over HTTPS on the canonical host.
- Use the exact path and filename the spec defines. Case matters on most servers.
- Set the correct Content-Type (often
application/json, sometimes plain text or JSON variants likeapplication/jrd+json). - Return HTTP 200 with the body, or follow the spec where it allows a redirect (for example,
change-password). - Allow your CDN, firewall and authentication middleware to pass through. A well-known URI behind a login wall is invisible.
- Do not invent new names. If you need a new well-known URI, register it via the IETF process described in RFC 8615 §3.
Common mistakes
- Publishing under
/well-known/(no leading dot). The spec requires/.well-known/. - Serving the file with
Content-Type: text/htmlbecause a framework wrapped it. - Requiring authentication, blocking by user-agent, or rate-limiting probes so aggressively that legitimate clients fail.
- Inventing an unregistered name, or assuming a deployed convention is registered. Custom names belong elsewhere; an existing protocol using an unregistered name needs an explicit assessment of the allocation risk.
Verification
curl -I https://example.com/.well-known/<name>should return200and the correct content type.- Check the IANA registry. If an existing protocol uses an unregistered name, record that fact rather than describing it as registered.
- Probe from a network outside your own to catch firewall and WAF rules.
Related topics
- /.well-known/change-password
- /.well-known/openid-configuration
- /.well-known/oauth-authorization-server
- /.well-known/oauth-protected-resource
- /.well-known/webfinger
- /.well-known/apple-app-site-association
- /.well-known/assetlinks.json
- /.well-known/nodeinfo
- /.well-known/api-catalog
- /.well-known/webauthn
- /.well-known/gpc.json
- Web Bot Auth — verifiable bot identity
- Agentic Commerce Protocol discovery (/.well-known/acp.json)