matrix-media-repo icon indicating copy to clipboard operation
matrix-media-repo copied to clipboard

Support regex blacklisting domains/URLs for URL previews

Open jellykells opened this issue 1 year ago • 0 comments

Currently it's possible to configure the matrix-media-repo URL previewer to blacklist ranges of IP addresses, but many hosts do not have a static IP. Synapse allows regex blacklisting of both domains and URL paths.

One workaround is to add an entry in the hosts file on the matrix-media-repo host that resolves a domain to a blacklisted IP, but this has limitations such as requiring an entry for each domain and subdomain due to lacking support for wildcards or regex.

References: Synapse URL preview URL blacklist docs

jellykells avatar Aug 10 '22 00:08 jellykells