Skip to content

Instantly share code, notes, and snippets.

@turt2live turt2live/invite-spam.md Secret
Last active Sep 25, 2019

Embed
What would you like to do?

There's 3 methods to block the room:

  1. Use the synapse admin API for it:
    curl -s -X POST -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"new_room_user_id":"@abuse:YOUR_SERVER.org"}' 'https://YOUR_SERVER/_matrix/client/unstable/admin/shutdown_room/!BAD_ROOM:example.org'
  2. Block the room with an antispam module ( https://github.com/t2bot/synapse-simple-antispam )
  3. Ignore the user with /ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.