girinovey on Nostr: utxo the webmaster 🧑💻, a proposal for the WoT-Relays, to allow for newbies: ...
utxo the webmaster 🧑💻 (npub1utx…50e8), a proposal for the WoT-Relays, to allow for newbies: CAPTCHA.
The idea should be, we add a page with a captcha and a place for the user to paste their npub. If they answer the captcha correctly, user gets added to a whitelist for a limited time (say 24h).
If user tries to access the relay and is not in the whitelist, nor in the WoT, relay responds with both an "auth" request and a private message pointing to the url of the captcha page.
When validating events, check for both WoT and whitelist.
If user tries to abuse the captcha page (3 bad captchas in a minute, or 10 bac captchas in an hour), blacklist them and their IP address.
Published at
2024-09-17 14:09:41Event JSON
{
"id": "7272a1e1a6fd32076ec6ca6da17b8694580f7f71251f17fc57d8dc7c8a7f2cb9",
"pubkey": "3ffac3a6c859eaaa8cdddb2c7002a6e10b33efeb92d025b14ead6f8a2d656657",
"created_at": 1726582181,
"kind": 1,
"tags": [
[
"p",
"e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb",
"",
"mention"
]
],
"content": " nostr:npub1utx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4s7r50e8, a proposal for the WoT-Relays, to allow for newbies: CAPTCHA.\n\nThe idea should be, we add a page with a captcha and a place for the user to paste their npub. If they answer the captcha correctly, user gets added to a whitelist for a limited time (say 24h).\n\nIf user tries to access the relay and is not in the whitelist, nor in the WoT, relay responds with both an \"auth\" request and a private message pointing to the url of the captcha page.\n\nWhen validating events, check for both WoT and whitelist.\n\nIf user tries to abuse the captcha page (3 bad captchas in a minute, or 10 bac captchas in an hour), blacklist them and their IP address.",
"sig": "28ad33e3e13abdd10c4613a34cb7be3ba5ea6962765cb04420c0baad153dda63023448f2dc0eac2d82f63e54edd6ff6c5ae9af085301c365d9781bb3da531b3e"
}