Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Disable media federation #15579

Open
Open

Description

@catfromplan9

Description:

When a remote media MXC is requested, provided this feature is enabled, redirect to the same resource on the homeserver it is hosted on. Do not mirror content.

I need this feature added to resolve the fact that malicious individuals are federating illegal content onto my private matrix homeserver and reporting it to my VPS.

An alternative would be to require an access token be passed when attempting to download remote media.

Activity

  1. dklimpel commented on May 12, 2023

    @dklimpel
    Contributor
  2. catfromplan9 commented on May 12, 2023

    @catfromplan9
    Author

    Are you looking for this?

    * [Add config option to prevent media downloads from listed domains. #15197](https://github.com/matrix-org/synapse/pull/15197)
    

    Yes, thanks

  3. added
    A-Media-RepositoryUploading, downloading images and video, thumbnailing
    A-ModerationTools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ...
    S-MinorBlocks non-critical functionality, workarounds exist.
    T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.
    Z-Spec-BlockedThis change is blocked on specification (e.g. an MSC).
    on May 12, 2023
  4. catfromplan9 commented on May 16, 2023

    @catfromplan9
    Author

    Description:

    When a remote media MXC is requested, provided this feature is enabled, redirect to the same resource on the homeserver it is hosted on. Do not mirror content.

    I need this feature added to resolve the fact that malicious individuals are federating illegal content onto my private matrix homeserver and reporting it to my VPS.

    An alternative would be to require an access token be passed when attempting to download remote media.

    For now, I have implemented this by writing my own python webserver and adding nginx config option for proxying to it when applicable. It works fine on all the clients and I think merging the functionality into synapse as a toggleable feature would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Media-RepositoryUploading, downloading images and video, thumbnailingA-ModerationTools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ...S-MinorBlocks non-critical functionality, workarounds exist.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.Z-Spec-BlockedThis change is blocked on specification (e.g. an MSC).

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions