anchorman-monitor (+https://anchorman.lol/monitor/bot)
The anchorman relay checker
If you run a Nostr relay and see this User-Agent in your logs, it is the checker behind the public relay monitor on anchorman.lol. It mostly reads; at most four times a day it publishes one ephemeral event, and only if your NIP-11 document says anyone may write.
What a check does
A DNS lookup of your relay's name (over HTTPS, at Cloudflare's resolver), one HTTP GET of your NIP-11 document (Accept: application/nostr+json), one WebSocket connection, and one REQ for a single kind-1 event, closed at EOSE. Each part has a few seconds before it gives up. Twice a day a TLS handshake, and nothing more, reads your certificate's expiry and issuer.
The write check (NIP-66 rtt-write)
Once every 6 hours, after a read that ended in EOSE, the same connection sends one event of kind 26166 and times your OK. The kind is ephemeral, so your relay stores nothing, and the event says what it is. It is skipped when your NIP-11 document is missing or its limitation sets auth_required, payment_required, restricted_writes or a min_pow_difficulty, and when the read was CLOSED. An OK false is never counted as down.
How often
A listed relay is checked every 30 to 60 minutes, a relay that has been down for a day every 6 hours, and less often after that. At most two connections to one host at a time, and a 429 with Retry-After is honoured.
Discovery
To find relays, the checker also reads public relay lists (kinds 10002, 10050, 10012 and 10007) and NIP-66 relay reports (30166) from listed relays: about twice a day per relay, a few pages at a time.
Where from
Cloudflare Workers, so requests come from Cloudflare's network. The certificate check, and a second look at relays the main checker could not reach, run twice a day from a GitHub Actions runner.
Opting out
Write to leon@anchorman.lol with your relay's address. It goes on the do-not-monitor list: never checked or crawled again, and taken off the monitor. Blocking the User-Agent works too; the monitor then lists the relay as “blocks our checker” while other monitors still see it up.