A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
1/**
2 * Global allowlist for accounts that should bypass all checks
3 *
4 * Add DIDs here to exempt them from all moderation checks.
5 */
6export const GLOBAL_ALLOW: string[] = [
7 // Example: "did:plc:trusted-account",
8];
9
10/**
11 * URL shortener detection pattern
12 *
13 * Matched URLs are resolved to their final destination before checking.
14 * Add domains for URL shorteners you want to expand.
15 */
16export const LINK_SHORTENER = new RegExp(
17 [
18 "bit\\.ly",
19 "tinyurl\\.com",
20 "t\\.co",
21 "goo\\.gl",
22 "ow\\.ly",
23 "is\\.gd",
24 "buff\\.ly",
25 "rebrand\\.ly",
26 "short\\.io",
27 ].join("|"),
28 "i",
29);