There's no good answer to this right now
Basically you should be using Tor browser at maximum security settings, but nostr still doesn't have a client you could use then, so unless you're a high tier nostr dev + web admin, there's not much you can do