RocketChat / RocketChat/Rocket.Chat

Setting "Embed Ignored Hosts" ignores subdomains

Open
#30,701 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

The setting "Embed Ignored Hosts" ignores subdomains completly.
For example http://blub.domain.com/test.html gets always embeded regardless if I am add blub.domain.com or domain.com to the list. So it is not possible to block anything that has an subdomain in its url.

Description:
Steps to reproduce:
  1. add business.amazon.com and/or amazon.com to the Embed Ignored Hosts list
  2. post that link https://business.amazon.com/en/work-with-us/commercial/agribusiness
  3. link still gets embeded instead of ignored
Expected behavior:

Link gets ignored and no media gets embeded.

Server Setup Information:
  • Version of Rocket.Chat Server: 6.4.2
  • Problem exist at least since 6.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests, so start by tracing the Embed Ignored Hosts setting and the URL host-matching path used for link previews. Reproduce the listed business.amazon.com and amazon.com cases, then add coverage showing that matching hosts and subdomains remain unembedded.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.