Stop open account creation on a self-hosted Synapse server, or keep sign-ups invite-only with limited-use registration tokens.