Links

Matrix Allow/Block List

Blocking or allowing specific domain names or IPs address to communicate with your Matrix Homeserver

Synapse

To create allow/block lists on the Synapse installation, change it directly in the configuration file (homeserver.yaml). You can block undesired communication with specific homeservers or allow only the desired ones.

Block List

Add the following to the Synapse configuration file:
  • ip_range_blacklist: Creates a block list by IP ranges (List all IPs you want as a YAML array).
To learn more, see Blacklisting IP ranges.

Allow List

Add the following to the Synapse configuration file:
  • ip_range_whitelist: Creates an allow list by IP ranges (List all IPs you want as a YAML array).
  • federation_domain_whitelist: Creates an allow list by domain names (List all domain names you want as a YAML array).
After creating the desired configuration, restart the Synapse server; everything you specified should be blocked.
To learn more, see federation_domain_whitelist.

Dendrite

Currently, Dendrite does not support creating allow/block lists.