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.

URL preview whitelisting akin to url_preview_url_blacklist #6205

Description

@dud1337

In homeserver.yaml we have:

url_preview_ip_range_blacklist:
...
url_preview_ip_range_whitelist:
...
url_preview_url_blacklist:

I propose adding

url_preview_url_whitelist:

Using the same urlparse scheme as the blacklist.

Instead of blacklisting 99% of domains, one could whitelist just a few - which might have dynamic IP addresses, or IPs that host multiple sites with potentially malicious/invasive owners.

Example:

url_preview_url_whitelist:
    - netloc: 'my_site.com'
    - netloc: '*.my_site.com'
    - netloc: 'another_acceptable_site.com' # with the same IP as an unacceptable site

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-URL-PreviewIssues related to generating server-side previews of remote URLsO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorBlocks non-critical functionality, workarounds exist.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.z-feature(Deprecated Label)z-p2(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions