Urgent.News

What's breaking now, across hundreds of outlets.

Tech

A client-side content-moderation filter still ships its wordlists and classifiers

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…

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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Course Image Isolation: 5 Private-Bucket Controls for Resizing and Signed URLs

Short answer: keep course media in a private bucket, authorize direct uploads against a server-owned tenant record, let a worker create a fixed set of thumbnails, and mint a signed URL only after the…

  • Create media record before upload, binding media ID to tenant and source key.
  • Establish authority matrix defining permissions for each actor in bucket layout.
  • Treat resize messages as references to trusted state, not self-authorizing commands.

Why Client Emails Land in Spam After DNS Migrations (SPF 10-Lookup Limit, Duplicate DMARC & Cutover Diffing)

Every freelance web developer has lived through this exact horror story: you migrate a client's domain to Cloudflare, the new website loads in 120ms, SSL is green—and 3 hours later the client calls in…

  • Clients experience email deliverability issues after domain migrations to services like Cloudflare
  • Duplicate dmarc or v=spf1 records cause deliverability problems; merging with commas resolves issue

Building a Numerical Analysis HTTP Endpoint with greenServeFE

I've been working with the gs_compute and server native modules in greenServeFE . Here's a small example that combines numerical computation with an HTTP endpoint.

  • greenServeFE integrates numerical computation and HTTP server functionality
  • /api/analysis GET route provides statistical analysis and linear equations solution
  • Program runs on greenServeFE server, port 8080, accessible for analysis

A browser circuit simulator still ships its component models and solver

In-browser electronics labs, "circuit playgrounds", and soldering-course widgets often advertise a realistic simulation: op-amps that saturate, SPICE-like transient analysis, and vendor component…

  • Browser-based simulator includes device models and solver
  • Models cover Shockley diodes, MOSFETs, op-amps
  • Instrument logic computes scopes, Bode plots, THD

3 Migration Boundaries for SMS Event Alerts With Country Guardrails and Delivery Polling

Use an application-owned ledger for SMS event notification alerts, with delivery status polling preserved across provider migration so healthtech compliance notices retain their evidence.

  • Provider responses treated as evidence attached to notice ledger
  • Business identity consists of notice revision and recipient reference
  • Key invariants: one intent recoverable, source and status preserved

More from Thursday 26 November →