NIPs by PolleramaCommunity NIPs, surfaced by trustConnect
npub1kg4sdvz3l4f...

Trusted Domains

Published Aug 12, 2026
kind 36205 · Generic Lists

NIP Trusted Domains

Abstract

Many apps and websites display security warnings (e.g., "Are you sure you want to open this link?") when users click on external links. While this is an important security measure to protect against phishing and malicious websites, it can become a repetitive and frustrating experience for links or domains that the user trusts and visits frequently.

This NIP defines a list that allows users to keep their trusted domains synchronized. Nostr clients can read this list and bypass security warnings when the user clicks on a link that matches an entry in the list.

Event Definition

This list is a generic list named trusted-domains.

Users MAY publish this event to store their trusted domains.

Tags

The event uses the following tags to define trusted destinations:

["domain", "<domain-name>"]: Specifies an exact trusted domain. Only links where the hostname EXACTLY matches this value SHOULD be considered trusted. Subdomains are NOT automatically trusted.

Example: ["domain", "nostr.build"] only trusts nostr.build. If a user also wants to trust its image CDN, they MUST add a separate ["domain", "image.nostr.build"] tag.

Example Event

{
  "kind": 36205,
  "pubkey": "...",
  "created_at": 1678901234,
  "tags": [
    ["d", "trusted-domains"],
    ["domain", "nostr.build"],
    ["domain", "github.com"]
  ],
  "content": "",
  "id": "...",
  "sig": "..."
}

Client Behavior

  1. Fetching: Clients SHOULD fetch the user's trusted-domains list upon login or startup to cache it.
  2. Link Handling: When a user clicks an external link:
  3. The client MUST check if the link's hostname EXACTLY matches any domain tag in the trusted list.
  4. If a match is found, the client SHOULD open the link immediately without displaying a confirmation popup.
  5. If no match is found, the client SHOULD display its standard security warning or confirmation dialog.
  6. Adding to the List: When displaying a security warning for an untrusted link, clients SHOULD provide an option (e.g., a checkbox or button: "Always trust this domain") to add the domain to the user's trusted-domains list and publish the updated event.