{
  "id": 21899364,
  "title": "A client-side content-moderation filter still ships its wordlists and classifiers",
  "url": "https://urgent.news/2026/11/26/a-client-side-content-moderation-filter-still-ships-its-wordlists-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T01:19:26.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/veilvm/a-client-side-content-moderation-filter-still-ships-its-wordlists-and-classifiers-1fgc"
  },
  "original_language": "en",
  "account": "Client-side content moderation filters often include wordlists, regex patterns, and classifiers to flag inappropriate content. However, exposing these components in the browser poses risks. A determined adversary can easily extract and reuse this sensitive information, undermining the filter's effectiveness. The ideal approach is to perform high-stakes decisions on the server, using the same (or stricter) policy than the client. The client should only handle lightweight pre-checks for improved user experience. Keep the critical moderation logic separate from the main user interface, applying strong obfuscation techniques to protect it. Avoid shipping full wordlists and model weights in the public bundle; instead, use trimmed-down versions for the initial client-side check. Implement measures to detect copied lists and rotate harmless canary phrases to identify potential theft. Ensure that moderator-only rules and internal category names are not bundled with the client-side code. Remember, a server-side moderation system is essential to enforce the final decision, including for edits, reactions, and offline queued messages. While some evasions may still occur, obfuscating client-side assets only deters casual copying and does not conceal the true policy.",
  "summary": "Community products, UGC games, and in-app chat often ship a \"smart filter\" that flags slurs, scams, and personal data before a message is sent. If that filter runs entirely in the browser, you have published the exact wordlists, regexes, and classifier weights that decide what is allowed. A teenager who wants to evade the filter, or a competitor who wants your taxonomy, does not need a leak. They…",
  "key_points": [
    "Client-side filters include wordlists and classifiers",
    "Exposing components risks sensitive information theft",
    "Server-side moderation essential for final decisions"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}