Skip to content
Go back

Understanding .well-known URIs

Published:

Recently, while exploring internal OAuth documents at work, I stumbled upon URLs that looked like this:

https://example.com/.well-known/interal-auth/...

The .well-known URI grabbed my attention, so in this blog, we’ll demystify the concept, RFC 8615, and explore some real-world examples.

TL;DR

Aspect Details
What A standard URI prefix (/.well-known/) for service discovery and configuration.
Why Brings predictability, reduces conflicts, simplifies client-server interactions.
Examples Let’s Encrypt challenges, OAuth discovery, security.txt, password management, Universal Links, and more.

What is .well-known? (RFC 8615)

RFC 8615 defines a special URI path prefix — .well-known/ — intended for service discovery.

In simple terms:

This path is always at the root of the domain (e.g., https://yourdomain.com/.well-known/...) and is intended to be reserved and controlled by the web server owner.

But why ?

The internet needs order — especially when different apps, services, and protocols need to communicate automatically.

Before .well-known, developers and companies had to invent random paths to place their service configuration files. This led to:

.well-known solves this by:

In short, .well-known brings predictability and interoperability across the web.

Real-World Use Cases

Use Case Purpose .well-known Path
Let’s Encrypt - ACME Challenge Verifies domain ownership for issuing SSL certificates. /acme-challenge/<token>
OAuth 2.0 Authorization Servers Enables OpenID Connect clients to discover authorization endpoints. /openid-configuration
Security.txt Provides security researchers with contact information and vulnerability reporting guidelines. /security.txt
Password Change / Account Management Allows browsers to redirect users to password update pages. /change-password
Apple App Site Association (AASA) Enables iOS apps to handle Universal Links by associating apps with domains. /apple-app-site-association

So the next time you see a .well-known URL, you’ll know: it’s not just a random folder — it’s a tiny piece of internet architecture helping everything run smoothly.


Suggest Changes

Previous Post
How To Add Simple Download Verification for Your Users
Next Post
JSON-RPC Uncovered