Link rules
This page is for mods. After reading it you can set the link gate, predict which links it holds, and allow or hold a site.
Links are how chat spam turns into harm: scam pages, malware downloads, shock images. The link gate checks every link in chat against a list of sites you trust. It holds a message whose link points anywhere else until a mod has looked at it.
The link gate is off on a new install. It works from a list of allowed sites. On a new install that list holds only a few platforms and your own domain, so switching it straight on would hold almost every other link in chat. That is why it has a measuring setting first.
The three settings
| Setting | What happens to a message with a link to a site nobody has allowed |
|---|---|
off (default) |
Nothing. Links are not even looked at |
flag |
The message is delivered as usual. The site records that it would have been held |
hold |
The message is held for a mod |
Change it with a command in the chat box:
| Command | What it does |
|---|---|
/linkgate status |
The setting, and how many sites are allowed or held |
/linkgate set flag |
Measure without holding |
/linkgate set hold |
Hold |
/linkgate set off |
Turn it off |
/linkgate test <a line of chat> |
Says whether that line would be held, and why, without changing anything |
The setting is changed with this mod command; the mod panel has no switch for it. It is not part of a lockdown and never turns off by itself.
flag keeps flagged messages out of the review queue and out of /linkgate status, so a measuring week adds no work for your mods. To size the gate, open Chat history, set Message contains… to https:// and read which sites your chat links to. Then try /linkgate test on real lines.
Recommended: before switching to
hold, read a stream's worth of links in Chat history. Allow the sites your community links to every day, and try/linkgate teston a few real lines.
How a link is judged
The gate finds every http:// and https:// address in a message, including the target of a [text](address) link. The words in a link's label are not judged, because they are not clickable. Each address is reduced to its site name (www. and a trailing dot removed). The gate judges it in this order, and the first rule that applies decides:
| Order | Rule | Result |
|---|---|---|
| 1 | The name looks like something it is not: punycode (xn--) or a mix of alphabets in one part, such as a Cyrillic letter inside a Latin word |
Held, always. Not even an allowed site beats this |
| 2 | The site is a link shortener or file host (see below) | Held, always |
| 3 | A mod rule for the site or a parent of it. The most specific rule wins: a rule for docs.example.com beats one for example.com |
Allowed or held, as the rule says |
| 4 | The built-in list: twitch.tv, youtube.com, kick.com, stream.place, wikipedia.org, wikimedia.org, and your own domain |
Allowed |
| 5 | Anything else | Held (or flagged) |
A rule for a site covers its subdomains: allowing example.com allows docs.example.com. If a message has several links, the worst one decides, so a bad link cannot ride along next to a YouTube link.
Sites that can never be allowed wholesale
Some sites say nothing about where a link really goes. A shortener (bit.ly, tinyurl.com, t.co, youtu.be, redd.it, amzn.to and others) hides the destination; a file or paste host (Discord's attachment servers, mega.nz, gofile.io, pastebin.com, catbox and others) is honest about the site and silent about the file. Links to these are always held while the gate is on, and no mod rule can allow them, because allowing bit.ly mid-stream would quietly undo the whole gate. The list is fixed in the code.
A mod can still Allow one such message after looking at it.
youtu.be is on this list even though youtube.com is allowed, so a youtu.be short link is held. Ask your community to paste full youtube.com addresses.
Allowing or holding a site
In the mod panel, open Chat controls → AI automod and word lists. Choose link host, type the site (example.com), then press Whitelist (allow) or Blacklist (hold). Or use commands:
| Command | What it does |
|---|---|
/whitelist host example.com |
Allow links to it and its subdomains |
/blacklist host example.com |
Hold links to it, even if a parent is allowed |
/whitelist clear example.com |
Remove the rule. The answer says what links there do now: pass (built-in list) or held (not on any list) |
Type the site name only. An address such as https://example.com/page is reduced to example.com, and something that is not a site name is refused. Changes apply to site chat at once and to platform chat within a minute.
What a held link does
- Typed on your site: the sender sees "Held for review" and a line saying links to that site need a moderator's OK. The message waits in the review queue with Allow and Deny.
- From a platform: the message is not shown in site chat yet. It waits in the same queue; Allow shows it in site chat. It is already visible on its own platform, which is that platform's moderation to handle.
A held message waits for a mod and is deleted 30 days after it was held. The gate applies to everyone, mods and the admin included. It checks site chat and platform chat, not community rooms or direct messages.
Holding new accounts
Another way to keep a raid's links out is to hold everything from accounts made in the last few days. That is a lockdown lever, Minimum account age, described on Raid lockdown. It applies to platform accounts. For new site accounts, use the New signups lever.
Next: Raid lockdown