Jurisdiction rules
Jurisdiction rules add regional content restrictions to your project's policy. Your integration supplies the viewer's country and performs any required age check. Global mandatory rules continue to apply everywhere.
Jurisdictions served
Your Portal › Moderation policies show the global and regional rules that apply, read-only.
Every project serves the jurisdictions with legal rules: global, Germany (DE), Austria (AT), France (FR), the United Kingdom (GB), Australia (AU) and Brazil (BR). They always apply and have no setting. The European Union (EU) entry is a product standard rather than a legal requirement, so your project serves it only when you opt in under Jurisdictions served. Mandatory rules only raise a decision: a regional age restriction cannot weaken a policy block, and a regional block does not delete content for viewers elsewhere.
Delivery depends on the viewer's region only for assets whose outcome can differ by region: a regional rule sets a stricter outcome for the asset, or the asset hasn't been checked against the rules of a jurisdiction your project serves. Every other asset is delivered the same way everywhere, without a viewer region and with its usual cache headers.
Existing assets and rollout
Assets are checked against the jurisdictions your project serves when they are uploaded. Opting into the EU later does not check existing assets again. If an asset's existing results already cover the EU rules, it is delivered as usual. If they don't, viewers in EU member states get 403 asset/regional-evidence-required for it, while viewers elsewhere still see it as before. The same applies to an asset whose results don't cover a legal jurisdiction, such as one still being checked. The error means the asset hasn't been checked for that jurisdiction, not that it is harmful.
To have an existing asset checked for the EU after opting in, upload it again with a new externalId. Before opting into the EU on a live app, show viewers who get this error a "not available" message instead of serving your own copy, and check what viewers in a country will get by requesting an asset with viewerClaims.region set to that country.
Regional content rules
Regional rules:
| Jurisdiction | Additional outcome | Official sources |
|---|---|---|
Germany (DE) | Block qualifying Nazi symbols and public Holocaust denial, with supported lawful-purpose exceptions. | StGB §§86, 86a and 130 . |
Austria (AT) | Block qualifying Nazi symbols and public Holocaust denial; non-promotional pictorial and other statutory exceptions are assessed separately. | Abzeichengesetz §§1–2 and Verbotsgesetz §3h . |
France (FR) | Block qualifying public Holocaust denial. A blanket online Nazi-symbol rule is not included. | Law of 29 July 1881, Article 24 bis . |
United Kingdom (GB) | Age-restrict pornographic images and video; your app must confirm a reliable age check. Block realistic pornographic images and video of strangulation or suffocation, or of sexual activity between close relatives (parent, grandparent, child, grandchild, sibling, half-sibling, uncle, aunt, nephew or niece, including by adoption). | Ofcom: age checks to protect children online and Ministry of Justice: Crime and Policing Act 2026 offences relating to pornography . |
European Union (EU) | Age-restrict pornographic images and video with a reliable age check as an opted-in product standard. | European Commission: protection-of-minors guidelines under DSA Article 28 . |
Australia (AU) | Age-restrict pornographic images and video, qualifying high-impact violent media and material promoting or instructing suicide, self-injury or disordered eating. Your app must confirm a reliable age check. | eSafety: Age-Restricted Material Codes . |
Brazil (BR) | Age-restrict pornographic images and video; your app must confirm a reliable age check. | ECA Digital, Law 15,211, Article 9 . |
Non-pornographic nudity alone does not activate the pornography rules. The UK strangulation and relatives rules read a relationship from the image and its caption, title or accompanying text, and leave step, foster and in-law relationships between adults to your policy; sexual content presenting anyone as under 18 is already blocked everywhere by the Sexualised minors rule. They apply to images and video, not text. A topic mention, recovery or support alone is insufficient for Australia's self-harm rule.
The opted-in EU adult-content rule is a product standard informed by DSA guidance, not a claim that every service has the same legal obligations. This catalogue covers specific content and delivery rules; it does not automate every duty in a jurisdiction. Regional rules can affect custom policies that otherwise allow the material.
Sources checked on 27 October 2026, and the UK pornography offence source on 6 November 2026. The linked legislation and regulator guidance describe their own service scope and exceptions; the table describes the controls implemented by CalmLens.
Decisions and precedence
Global matches record classification.moderation.source: "mandatory-rule" and the stable classification.moderation.rule key. Stricter regional outcomes appear in classification.moderation.regions; they do not change the base decision. EU rules apply to viewers in its member states when EU is selected. See Mandatory and regional decisions for the report fields.
The effective action is the strongest of the base decision, the matching country entry and an opted-in EU entry for an EU member. A country entry wins a tie with EU. With no applicable regional entry, use the base decision. A regional block withholds the asset even if the request has a signed URL or API key. A regional age-restrict uses the existing age-restricted delivery opt-in. Global blocks and safety holds still apply everywhere.
Viewer region
An asset's stored classification.moderation.status is the base decision for every viewer. The CDN applies regional outcomes on each request, using the optional viewerClaims you pass on the CDN request or the SDK asset component. The asset API returns only the stored decisions, not a viewer-specific delivery result, so you don't need an asset lookup before requesting media. If you serve your own copies, see Self-hosted content.
| Claim | When omitted | When supplied |
|---|---|---|
viewerClaims.region | Country inferred from the connection reaching CalmLens. | Your viewer's uppercase ISO country code, such as DE or GB. EU is a jurisdiction, not a viewer country. |
viewerClaims.ageConfirmed | false, including requests with API keys or signed asset URLs. | Your application's confirmation that age-restricted content may be delivered. |
Claims are customer assertions. CalmLens does not verify physical location, age or the method your application used. Your application chooses how to establish and enforce those facts. Claims do not override blocks, safety holds or private-asset permissions. Passing a country does not opt your project into the EU standard; opt in first.
SDK asset component
import { CalmLensAsset } from "calmlens/react";
// Claims are optional customer assertions evaluated by the CDN.
// ageConfirmed stays false until your app completes the required age check.
export function RegionalPhoto({
src,
region,
ageConfirmed,
}: {
/** The asset URL: public, or signed by your server for a private asset. */
src: string;
region: string;
ageConfirmed: boolean;
}) {
return <CalmLensAsset src={src} viewerClaims={{ region, ageConfirmed }} alt="Uploaded photo" />;
}
Pass viewerClaims directly to the component, which adds them to every request it makes. Without an explicit region, the CDN infers it when the browser requests the asset. A stored base status of allowed can still result in a regional refusal: the asset's display info reports availability for the claims, and the component shows its unavailable notice without requesting the content. The reveal callback asks your application to decide whether to set viewerClaims.ageConfirmed; it does not set it automatically.
Explain a regional restriction
The stored report's classification.moderation.regions describes recorded regional statuses. The CDN evaluates the current asset and project rules for each request, including cache hits. It returns an error rather than restricted media. A proxy, or a caller of the SDK's CDN serve method, can inspect the status and JSON error code; ordinary image elements expose a load failure, not the JSON body.
| Error code | Meaning |
|---|---|
| 400 viewer-claims/invalid | The supplied claims aren't valid JSON, or contain an unknown field, an invalid country or a non-boolean age confirmation. |
| 403 viewer/region-required | The asset's outcome depends on the viewer's region, but neither an explicit country nor a usable connection country is available. |
| 403 viewer/age-confirmation-required | This content is age-restricted and ageConfirmed is omitted or false. |
| 403 asset/regional-evidence-required | The asset needs classification evidence for an applicable jurisdiction. See Existing assets and rollout. |
| 403 asset/not-available | Delivery is refused, including regional blocks and other asset restrictions. |
Proxies and request country
When the browser requests CalmLens directly, the fallback country comes from its connection. When your backend proxies media, the fallback may identify your backend instead. Forward the country from the incoming viewer request as viewerClaims.region. A VPN can change the visible connection country; CalmLens does not recover physical location behind it. The HTTP Origin header is not used for country detection.
SDK CDN methods accept the claims object. At the HTTP level, send either a JSON-encoded viewerClaims query parameter or the X-CalmLens-Viewer-Claims header containing JSON. The query parameter takes precedence if both are present. Media elements use the URL form; proxies can use the header form.
const response = await fetch(assetRenderedUrl, {
headers: {
"X-CalmLens-Viewer-Claims": JSON.stringify({
region: viewerCountry,
ageConfirmed: false,
}),
},
});
if (!response.ok) return new Response(await response.text(), { status: response.status });
return new Response(response.body, {
headers: { "Content-Type": response.headers.get("Content-Type") ?? "application/octet-stream", "Cache-Control": "private, no-store" },
});For an application that never uses age-restricted content, leave age confirmation omitted or explicitly false on every path, including server-side downloads and processing jobs. Authentication does not confirm age.
Signed URLs and caching
Claims aren't part of a signed asset URL's grant: add them to the resource URLs you build from it, as for a public asset, either by passing viewerClaims to the SDK's URL builders or as the viewerClaims query. Anyone holding the URL can change them, so signing is an access option, not a way to fix the claims.
A proxy cache must not bypass delivery checks. The simplest integration forwards each request to CalmLens and honours its cache headers. A cache separated only by country and age confirmation can still serve stale permissions after moderation or project settings change. Responses for assets whose outcome depends on the viewer, including by region, use private, no-store for downstream caches; other assets keep their usual cache headers. CalmLens can reuse its own bytes after checking the current request.
Self-hosted content
If you serve your own bytes, your application must apply the stored base decision, the matching country and EU entries in classification.moderation.regions, and any age check before returning them. Base-status webhooks don't describe regional outcomes; asset.region-restricted is sent when a check records a new or changed regional entry. classification.moderation.regions covers only the jurisdictions your project served when the asset was checked. An asset checked before you opted into the EU has no recorded EU outcome, and no event is sent for it, so keep that asset unavailable to viewers in EU member states.
Age-check responsibilities
Your app performs age assurance. When the viewer is in the United Kingdom, Australia or Brazil, or in an EU member state and your project opts into the EU, use a reliable age check, not a self-declared age. Elsewhere your ordinary age check is enough. The reliable check applies to every age-restricted asset those viewers open, including assets your base policy age-restricts with no entry in classification.moderation.regions, and it applies when the EU and a member country both apply. Set viewerClaims.ageConfirmed: true only after confirming the viewer passed. CalmLens does not receive age-provider results or verify a person's age, and anyone can set the claim on a public asset's URL; use private assets with signed URLs to control who can load age-restricted content (see Age-restricted assets). See native age checks.