matt on Nostr: if ($geoip_country_code = "CU") { return 451; } if ($geoip_country_code = "IR") { ...
if ($geoip_country_code = "CU") { return 451; }
if ($geoip_country_code = "IR") { return 451; }
if ($geoip_country_code = "KP") { return 451; }
if ($geoip_country_code = "RU") { return 451; }
if ($geoip_country_code = "SY") { return 451; }
Okay, I know, not perfect, but making a best effort goes a long way.
Published at
2023-03-04 16:52:29Event JSON
{
"id": "d7dfcbd2a942d2637c11d87f04d948a2d41d00adc75550502443d6c536549d83",
"pubkey": "3d2e51508699f98f0f2bdbe7a45b673c687fe6420f466dc296d90b908d51d594",
"created_at": 1677948749,
"kind": 1,
"tags": [
[
"e",
"4c771199ed80ad372d000a15c7806819ceb68c09b1c9799db822c835eaf8c828"
],
[
"e",
"12f0f6ef585e6cac3d71209a10128afd97f4097367b38dc8489eeb6b3cbffc9c"
],
[
"p",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc"
]
],
"content": "if ($geoip_country_code = \"CU\") { return 451; }\nif ($geoip_country_code = \"IR\") { return 451; }\nif ($geoip_country_code = \"KP\") { return 451; }\nif ($geoip_country_code = \"RU\") { return 451; }\nif ($geoip_country_code = \"SY\") { return 451; }\n\nOkay, I know, not perfect, but making a best effort goes a long way.",
"sig": "e682f7c978d09d8ba55d0ce421303ba82b187456fd3d7e016a59be79898b2c557204648e12a82392f6e35aaad1e45906a7db981b98d92e72d7ee36e5f3cfdda6"
}