Standard addresses Optional
Answer account lookups
If you have accounts that others look up, answer /.well-known/webfinger queries.
How to do it
Answer ?resource=acct:… with a JRD document, a small JSON file about the account. Send it as application/jrd+json, with Access-Control-Allow-Origin: *.
Example
GET /.well-known/webfinger?resource=acct:ana@example.com HTTP/1.1
Host: example.com
{
"subject": "acct:ana@example.com",
"links": [
{ "rel": "http://webfinger.net/rel/profile-page", "type": "text/html", "href": "https://example.com/team/ana" }
]
}
How to check
A WebFinger client finds an account.
For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/standard-addresses/webfinger.