Vaz on Nostr: If you are a relay operator and using nginx filtering out empty http_user_agent would ...
If you are a relay operator and using nginx filtering out empty http_user_agent would helped for the time being. b4 thos guy changed it
put this in nginx's server scope
```
server {
server_name my.cool.site;
if ($http_user_agent = "" ) { return 403; }
}
```
Published at
2024-09-06 13:47:36Event JSON
{
"id": "f87d31ad68ef39d46ce9c26cdd84f944b1f9125f928695a735762bece8dc8610",
"pubkey": "674473f682bc0101c94a7b2f463661943948ee1b8d6e266077578d46f859eb3c",
"created_at": 1725630456,
"kind": 1,
"tags": [
[
"e",
"e89c77f9bfba9cc628c4c4fb7115f3f70a71b7b2b6031a312fb7c3b7192954ce",
"",
"root"
],
[
"e",
"e89c77f9bfba9cc628c4c4fb7115f3f70a71b7b2b6031a312fb7c3b7192954ce",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "If you are a relay operator and using nginx filtering out empty http_user_agent would helped for the time being. b4 thos guy changed it\nput this in nginx's server scope\n```\nserver {\nserver_name my.cool.site;\nif ($http_user_agent = \"\" ) { return 403; }\n}\n```",
"sig": "2df1667d2a98484b8164836c63f00176708ee1c357e83ef731562cbdd662d293cad39ceca721fa57b4d89a055ec3c910a1ce0960c3ad1964f583b321d1e0833d"
}