Every app with user-generated content answers one question, whether you decided it or not: when does a person or a classifier look at a post, relative to when other people can see it? Before, after, or only when someone complains. Each answer trades latency, cost, user experience and risk differently, and most real apps mix them. This article defines the three models, compares them, and shows where allow, flag and block decisions from a moderation API fit.
The three models
Pre-moderation. Content is checked before anyone else can see it. The author submits, the check runs, and only approved content is published.
Post-moderation. Content is published immediately and checked shortly afterwards, by a classifier or by a moderator working through a queue. Bad content is visible for a short window and is taken down once it is caught.
Reactive moderation. Nothing is checked until a user reports it. The report is the trigger. This is the cheapest model and the one with the longest exposure window, because content stays up until someone notices and cares enough to report it.
They are not exclusive. The real decision is where each check sits in the publishing flow.
Trade-offs
Latency
Pre-moderation puts the check in the author's critical path. An automated text check adds a network round trip, which is fine for a comment and noticeable in a fast chat. Human review adds minutes to hours, which is fatal for anything conversational. Post-moderation and reactive moderation add no delay for the author.
Plan for the check being slow or down too. A hosted classifier with retries can take 20 seconds or more before it gives up, and your client timeout must be longer than that. Your UI needs a pending state, not a frozen button.
Cost
Pre-moderation touches every item, so cost scales with all content, including the vast majority that is fine. Post-moderation by classifier costs the same per item but moves the work off the critical path. Human review is the expensive part of every model, so thresholds exist to send people only the ambiguous items.
User experience
Honest users rarely notice a fast pre-check, but they do notice a post stuck in "pending" for a day. Post-moderation feels arbitrary when content disappears later, so say what was removed and let people appeal. Reactive moderation feels best to authors and worst to victims: the person who has to see the abusive comment, find the report button and wait is the one paying for the savings.
Risk
Here, risk means how long harmful content can be seen, and by how many people. Pre-moderation minimises it for what the check can recognise, post-moderation exposes users for the length of the window, and reactive moderation leaves the window open-ended. No model catches everything: classifiers miss context, sarcasm and coded language, and coverage differs between text and images. Coverage also differs by input: OpenAI's moderation endpoint scores images only for sexual, violence and self-harm, so a 0.0 for hate on an image means "not checked", not "clean".
Comparison table
| Model | Check happens | Author latency | Exposure window | Cost driver | Best for |
|---|---|---|---|---|---|
| Pre-moderation | Before publishing | Seconds (automated) to hours (human) | None for what the check catches | Every item is checked | Kids apps, marketplace listings, public images |
| Post-moderation | Right after publishing | None | Seconds to minutes | Classifier calls plus queue time | Comments, forums, feeds |
| Reactive | After a user report | None | Until someone reports | Report volume and response time | Small communities, the safety net under the others |
| Hybrid | Automated before, people after | Seconds | Short, and only for borderline items | Human time on flagged items only | Most apps |
Which model fits which app
Kids apps. Lean towards pre-moderation, and ask whether free text and image sharing should exist at all. Apple's Kids Category rules and children's privacy laws add obligations beyond moderation, so read the current guidelines and check with a lawyer about the countries you ship to.
Marketplaces. Listings are slow, deliberate content, so a few seconds of pre-check is invisible to the seller. Pre-moderate titles, descriptions and photos, because a prohibited item or a scam listing does damage while it is live. Buyer-seller chat is different: check it after the fact, and make reporting and blocking easy, since scams can move into private messages.
Chat. Latency is the product, so full pre-moderation fits badly. Automated post-checks, per-user blocking, rate limits and a clear report button do most of the work. A cheap automated check on the send path can still pay off if it fails open when slow.
Social feeds. A public post with an image can reach many people quickly, so one automated pre-check on posts is a sensible default, with post-moderation for comments and reports as the backstop.
Hybrid: allow, flag, block
The hybrid design that works for small teams uses an automated score to split content into three buckets:
- Allow when scores are low. Publish immediately, no human involved.
- Flag when scores are in the uncertain middle. Publish or hold depending on how risky the surface is, but put it in front of a person.
- Block when scores are high. Do not publish, log it, and give the author a way to appeal.
Thresholds are where your policy lives. Raise one and fewer legitimate posts are rejected but more harm slips through. Lower it and the queue grows. Set them per category: harassment and hate usually deserve an outright block, while violence is better flagged, because violent language is common in games, news and fiction. TrustShip's Apple-safe preset, for example, blocks harassment at 0.6 but only flags violence at 0.6, so a violent but non-abusive sentence goes to a person instead of being rejected.
The flag bucket is also where you tune pre versus post per surface. On a kids app, hold flagged content until a moderator approves it, which is pre-moderation for the uncertain slice. On a general feed, publish it and let a moderator remove it, which is post-moderation for the same slice.
Wiring decisions into your app
A moderation API such as TrustShip returns one decision per call, allow, flag or block: the most severe action among the rules that matched. Your backend decides what each decision means on each surface. A small function keeps that mapping in one place:
def publish_state(decision: str, surface: str) -> str:
if decision == "block":
return "rejected"
if decision == "flag":
# Strict surfaces hold for review; open ones publish and review later.
return "pending" if surface in ("kids_chat", "listing") else "published_under_review"
return "published"
result = trustship.moderate(text, user_id=user_id, content_id=post_id)
state = publish_state(result["decision"], surface="feed")
Three details matter. First, decide what happens when the call fails. Failing closed (treat as pending) is safer for a kids app, and failing open (publish, check later) suits chat. Second, pass a stable content_id and user_id so the decision, reports and appeals attach to the same item. Third, when a moderator removes something, your app must stop showing it. GET /v1/content/{content_id} returns a status such as removed or pending_review, so a removal reaches clients that already loaded the item.
The automated check on the way in is the pre-moderation step, the flag queue is the post-moderation step, and report and block buttons are the reactive step. You do not pick one model, you pick how each decision is handled per surface.
What the store rules say
Apple's App Review Guidelines, section 1.2, require apps with user-generated content to include a method for filtering objectionable material from being posted, a mechanism to report offensive content with timely responses, the ability to block abusive users, and published contact information. The wording is "filtering objectionable material from being posted to the app", so an automated check before publication is a straightforward way to show a reviewer you have one. Reporting and blocking are required as well, so reactive moderation alone is not enough for App Review.
Google Play's User Generated Content policy asks for "robust, effective, and ongoing UGC moderation", an in-app system for reporting and blocking objectionable content and users, and acceptance of terms before users create content. It does not prescribe pre-moderation or a removal deadline; it asks for moderation "reasonable and consistent with the type of UGC hosted" and for taking action against content or users where appropriate. Policies change, so check the current text before you submit, and ask a lawyer which laws apply where you operate.
Choosing a starting point
If you are unsure, start with an automated pre-check on public content, with thresholds that block clearly bad items and flag borderline ones. Add report and block buttons on day one, and look at the flag queue daily. If the queue is mostly false alarms, raise the flag threshold. If reports keep surfacing things the check missed, lower it. Move a surface towards pre-moderation when one bad post would cost a lot, and towards post-moderation when speed matters most.
Try allow, flag and block on your own content
Send a few real posts to the moderation API, tune the thresholds, and see which ones land in the review queue. The free plan is enough to try it.
Start free