Online Safety Act UK: Text Moderation Duties for Platforms

Most teams meet the Online Safety Act UK the same way: a legal summary lands in the inbox, someone asks whether it applies to us, and the answer is a paragraph of statutory language that never mentions write paths, review queues or latency budgets. The law is written for services. Someone inside your company still has to translate the content moderation duties for user-to-user services into product decisions — which text you inspect, when you inspect it, what happens when a check fires, and how a user can challenge the outcome.
This article does that translation. It summarises the Online Safety Act 2023 in general terms, turns the duties into pipeline requirements, and sets out the criteria worth weighing before you choose a moderation layer. It is a general summary, not legal advice: read the official text, and get advice from a lawyer who knows your service.
What the Online Safety Act Is and Who It Covers
The Online Safety Act 2023 is UK legislation that places safety duties on online services. Its general purpose is easy to state: make services safer for the people who use them, with extra weight on protecting children. It addresses two broad groups — services that carry user-to-user content, and search services — and expects each service to understand the harms it can carry and take proportionate steps against them.
A duties-based law, not a checklist
There is no fixed list of banned words, and no single set of features that makes a service compliant. The Act sets duties, and how you meet them depends on your service: what people do on it, who uses it, how content travels, and what harm is realistically possible there. Two products in the same category can carry different obligations because their risk profiles differ.
The useful question is therefore never "are we compliant?" but "what can go wrong on our surfaces, and what are we doing about it?"
Do you run a user-to-user service?
If people can send text to other people through your product, or publish text that others can see, you sit in the user-to-user part of the regime. That covers more surfaces than most teams first assume:
- direct messages and group chat
- comments, replies and threads
- forums and community posts
- reviews, listings and marketplace descriptions
- dating profiles and bios
- in-game chat, usernames and clan descriptions
- AI chatbot replies that other users can read or share
Search services are treated separately, with their own duties. Coverage also depends on the nature and reach of the service, so scope is a legal question about your specific product and audience. Read the official text and get advice.
The Kinds of Duties the Online Safety Act Creates
The duties are risk-based and proportionate. The law does not tell you which words to block. It asks what harms your service can carry and what you are doing about them — and much of that answer shows up in how user text is reviewed, actioned and explained.
Assessing risk
You are expected to understand the risks your service presents, to adults and with more weight to children. In practice this is a documented assessment: what surfaces exist, how content flows through them, what could be posted there, and how serious the consequences could be.
Mitigating risk
Assessing is not enough. You have to reduce the risks you identify, in proportion to their severity and likelihood. Mitigation is where engineering lives: detection, review, action, and the plumbing that connects them.
Enforcing your own terms
You publish terms of service, and the Act expects you to enforce them consistently rather than let them sit as decoration. If your terms say a category of content is not allowed, your pipeline has to be able to find it and act on it.
Reporting, complaints and redress
Users need a way to report content and to complain about decisions that affect them, and those routes have to work: a human on the other end for the cases that matter, and a real outcome rather than an automated acknowledgement.
Children's safety and age assurance
Children's safety carries additional weight. Where it is relevant to your service, you may need to know whether a user is a child — which is where age assurance comes in — and to apply stronger protections for younger users. What is proportionate depends on your product and on legal advice.
The common thread: many of these duties land on your text pipeline.
What Those Duties Mean for Your Text Pipeline
Strip the legal framing away and the engineering shape is familiar. You need a moderation layer in the write path, a human review queue, a record of decisions, and an appeals route.
You cannot mitigate what you do not inspect
A duty to reduce harm implies an ability to notice harm. If user text reaches other people without ever passing a check, your only detection mechanism is someone else's report — slow, incomplete, and biased toward whatever people bother to flag. A classification step gives you a signal at the moment text is created, and that signal is what makes routing, action and reporting possible. This is where text moderation compliance actually gets built.
Pre-publication checks vs post-publication review
Both patterns have a place, and which you use is a product decision per surface:
- Pre-publication — check before the text is visible. Suits higher-risk or lower-volume surfaces where a short delay is fine: profile bios, listings, public posts, comments from new accounts.
- Post-publication — publish immediately, inspect in parallel, act if something fires. Necessary where even a small delay is felt: real-time chat, live comments, in-game text.
- Hybrid — publish fast but hold the text back from wider distribution such as feeds, search and notifications until a check completes.
Latency budget decides most of this. A check that adds tens of milliseconds is invisible; one that adds seconds is not. Whatever sits in the write path needs a timeout and a defined fallback — publish, hold, or route to review.
Volume planning matters just as much. Size for peak requests per second, not the average, and remember that long texts may be checked in pieces, so a single long post can cost more than one call. If your product shows AI-generated replies to users, that text belongs in the same pipeline; checking LLM and chatbot output covers the problems specific to it.
Records, review queues and appeals
Three things are usually underspecified in a first draft:
- Records. Store the decision, the surface, the category that fired, the action taken and the time. This is what lets you answer a regulator, a lawyer or an angry user months later.
- A human review queue. Flags should route somewhere, prioritised by severity and by reach — a flagged public post seen by thousands is not the same ticket as a flagged DM. Queues need a staffing plan for spikes.
- An appeals path. Users should be able to challenge a decision and get a reasoned answer. That is both a duty-shaped requirement and a quality signal, because appeals show you where your categories produce false positives.
Data handling
Moderation touches the most sensitive text your product holds. Decide explicitly what leaves your infrastructure, what a vendor may retain, and how long your own decision logs live. If personal data in user text is a concern, screen user text for PII before it reaches storage you have to defend later.
The Kinds of Text Worth Classifying
The Act does not give you a category list. You choose what to detect, and those choices should follow from your own risk assessment. A practical starting taxonomy groups text by the harm it carries:
- Abuse aimed at people — content that attacks or degrades a person or a group.
- Sexual content — including adult material appearing in surfaces meant for general audiences.
- Content that encourages self-harm — where a user's safety may be at risk.
- Violence and weapons — threats, incitement, and content that facilitates harm.
- Drugs — content connected to illegal or restricted substances.
- Personal data — text that exposes someone's identifying information.
- Spam and scams — bulk deception, fraud attempts and platform abuse.
- Content involving minors — the highest-priority category on most platforms, and the one that shapes escalation paths.
Two rules of thumb. Not every category matters on every surface: a marketplace listing carries different risk from a joke in a group chat, and over-blocking damages trust as much as under-blocking. And while an overall "something is wrong here" signal is useful for routing, enforcement usually needs to know which category fired, because the action differs.
Choosing a Moderation Layer: Criteria That Matter
No single approach fits every team. Compare options on the criteria that change your life:
- Category coverage. Does the tool detect the harms on your list, and can you see exactly which categories it returns before you commit?
- Boolean flags versus scores. Some tools return true/false flags, some return numeric scores you map to thresholds yourself. Flags are simpler to reason about and test. Scores give tuning room but add a configuration surface you have to own and calibrate.
- Hosted versus self-hosted. A hosted API is fastest to adopt and needs no infrastructure. A self-hosted model keeps text on your network, which matters for data residency and for teams whose text cannot leave their environment.
- Data handling. What is stored, for how long, and where? Get it in writing rather than inferring it.
- Latency. Measure it with your real text sizes and concurrency, not a marketing average.
- Cost shape. Per request, per character, per seat or an unlimited-use licence all behave very differently as you scale. See content moderation API pricing for how these models interact with character limits and throughput.
- Who tunes it. If the system has thresholds, someone has to own them. Ask who, and how you would know when they drift.
Hosted, self-hosted or built in-house
Building in-house gives you complete control over categories, latency and data flow. It also gives you a model to train, evaluate, version and staff indefinitely — a research project disguised as a feature. Buying gives you time to ship and a vendor to depend on. Most teams host a moderation layer rather than train one, and choose hosted or self-hosted based on where their text is allowed to go; on-premises vs cloud content moderation walks through that trade-off.
Whatever you shortlist, check each vendor's current documentation for features, limits and pricing. Those change, and this article deliberately does not repeat them.
How CautionLabs Fits the Job
CautionLabs is text moderation that comes in two forms: a hosted REST API, and a model you run on your own infrastructure. Both return the same shape of answer.
The API returns twelve true/false flags — toxic, profanity, hate, harassment, self_harm, adult, violence, drugs, weapons, pii, spam and minor — plus one overall flagged value that is true when any category is flagged. It returns no scores, probabilities or confidence values, and there are no thresholds to tune. That suits teams who would rather build routing on booleans than maintain a calibration process.
curl https://api.cautionlabs.com/moderation \
-H "Authorization: Bearer $CAUTIONLABS_CLOUD_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "text from your users goes here"}'{
"categories": {
"toxic": false,
"profanity": false,
"hate": false,
"harassment": false,
"self_harm": false,
"adult": false,
"violence": false,
"drugs": false,
"weapons": false,
"pii": false,
"spam": false,
"minor": false
},
"flagged": false
}On-premises, you buy a model — the first is Argus 1, model id argus_1 — create a private key in the dashboard, run the container on your own network, and call the local endpoint:
curl http://localhost:8000/moderate \
-H "Content-Type: application/json" \
-d '{"text": "text from your users goes here"}'The model container makes no outbound requests and has no telemetry, which suits teams with data residency constraints or text they cannot send anywhere. Cloud and on-premises keys are different types: a private on-premises key does not work with the cloud API.
Three things are worth designing around. There is no batch endpoint, so text is checked one call at a time. There are no webhooks, so your service processes results as calls return. And a text of up to 10,000 characters is checked in 3,000-character pieces, with each started piece counting as one request — relevant when you size throughput for long posts.
Deployment and cost trade-offs are covered in pricing, and add text moderation in an afternoon shows the integration shape end to end.
Questions founders and trust and safety leads ask
Does the Act apply to a small platform? Scope depends on the nature and reach of your service and on what it carries. Size alone is not a safe assumption either way. Read the official text with a lawyer rather than guessing.
Do we have to check every message before it is published? No. The duties are proportionate, and pre-publication checking on every surface is often neither required nor practical — synchronous chat especially. Many teams publish immediately and review in parallel, holding only their highest-risk surfaces.
Can a keyword blocklist satisfy the duties? Blocklists catch literal strings and miss context, obfuscation and intent. They can be one layer in a pipeline, but they are not a substitute for classification plus human review.
Who owns the category list? You do. The law provides no category list; your risk assessment does. Write down why each category is on the list, and revisit it when the product changes.
Where should we log decisions? In your own systems, with enough detail to reconstruct a decision later: category, surface, action and timestamp. Vendor-side information is useful, but the record you will be asked for is the one you control.
A Practical Starting Checklist
- Inventory where user text enters and leaves your product. Messages, comments, profiles, listings, reviews, bot replies, usernames — including the surfaces you forgot.
- Decide the categories that matter for your risk profile, and write down why. The reasoning is the deliverable, not the list.
- Put checks in front of the highest-risk surfaces first. Ship one surface, learn from it, then expand.
- Set up a human review and appeals path. Define severity, routing, staffing and expected response times before the first spike.
- Keep records of decisions. Enough to reconstruct what happened months later.
- Plan for latency and volume. Know your peak request rate and what the pipeline does when a check is slow.
- Revisit the assessment when the product or audience changes. New surfaces, new markets and new age groups change the risk.
If you want to see how the flags behave on your own content before you design anything, run a few real samples through the CautionLabs playground — you will get the twelve boolean flags and the overall flagged value on text you already have. When you are ready to wire it in, the docs cover calling the moderation endpoint from your backend, and the on-premises guide covers running Argus 1 on your own network.