From 3f6530ed5575a9ea574e026dbd4fe59caf3afebe Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <richard@matrix.org>
Date: Sat, 6 Feb 2021 11:02:53 +0000
Subject: block groups requests to fosdem

---
 synapse/handlers/groups_local.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py
index 71f11ef94a..df040a675e 100644
--- a/synapse/handlers/groups_local.py
+++ b/synapse/handlers/groups_local.py
@@ -42,6 +42,9 @@ def _create_rerouter(func_name):
         else:
             destination = get_domain_from_id(group_id)
 
+            if destination == "fosdem.org":
+                raise SynapseError(502, "Failed to contact group server")
+
             try:
                 return await getattr(self.transport_client, func_name)(
                     destination, group_id, *args, **kwargs
-- 
cgit 1.4.1