mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-02-23 13:49:00 +00:00
Add link safety 51.md
This commit is contained in:
parent
339f2f5425
commit
921e79ec73
43
51.md
43
51.md
@ -151,6 +151,49 @@ Some clients have used these lists in the past, but they should work on transiti
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Link Safety
|
||||||
|
|
||||||
|
A kind `10099` replaceable event for storing user domain preferences. If a client automatically loads content links, these provide settings to the user to change their preferences. Aggregating kind `10099` from other users can be useful in informing users should they change the default settings.
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"kind": 10099,
|
||||||
|
"content": "",
|
||||||
|
"tags": [
|
||||||
|
["d", "domain_lists"], // identifier
|
||||||
|
["white", "nostr.build"],
|
||||||
|
["white", "void.cat"],
|
||||||
|
["black", "malicious-site.net"],
|
||||||
|
["black", "scam-domain.com"]
|
||||||
|
["unknown", "ask"] // Options: "load" | "block" | "ask"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Report Event Extension
|
||||||
|
|
||||||
|
Extend kind `1984` events to include domain reporting:
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"kind": 1984,
|
||||||
|
"tags": [
|
||||||
|
["u", "https://malicious-site.net", "malware"],
|
||||||
|
["L", "security.domain.safety"],
|
||||||
|
["l", "NS-mal", "security.domain.safety"]
|
||||||
|
],
|
||||||
|
"content": "Domain distributes malware",
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example Report Types
|
||||||
|
----------------------
|
||||||
|
Add the following report types for domains:
|
||||||
|
- `ip_grab` - Sites attempting to collect IP addresses
|
||||||
|
- `redirect` - Unexpected redirects to other domains
|
||||||
|
- `nsfw_content` - Adult or explicit content
|
||||||
|
- `phishing` - Fraudulent sites imitating legitimate services
|
||||||
|
|
||||||
## Encryption process pseudocode
|
## Encryption process pseudocode
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
|
Loading…
Reference in New Issue
Block a user