ARCHITECTURE · 4 MIN READ · PUBLISHED 2026-11-26

How SYNTHPLAY Isolates Community HTML5 Games with Cross-Origin Sandboxes & Cloudflare R2

SYNTHPLAY 如何通过独立沙盒域名与 Cloudflare R2 保障网页游戏安全

A technical breakdown of SYNTHPLAY's dual-domain security model (synthplay.games vs *.synthplay-box.cloud), automated AST scanning, ZIP-bomb guards, and zero-egress R2 CDN delivery.

Why Game Code Must Never Run on the Main Auth Domain

Hosting community-uploaded JavaScript on the same root domain as user accounts is a classic XSS hazard: any malicious script could read session cookies or impersonate logged-in players.

SYNTHPLAY enforces strict origin separation. The storefront lives at synthplay.games, while every community HTML5/ZIP bundle executes from its own isolated wildcard subdomain (*.synthplay-box.cloud) behind a Cloudflare Worker proxy with restrictive iframe sandbox attributes and Content Security Policy headers.

Automated Upload Quarantine & Zero-Egress Global Speed

Before any ZIP bundle goes live, SYNTHPLAY validates file sizes against ZIP-bomb expansion attacks, inspects scripts for unsafe external cookie/token exfiltration, and checks asset integrity. Approved builds are served directly from Cloudflare R2 object storage so indie creators enjoy global CDN speed without bandwidth bills.

TRY INSTANTLY // ZERO DOWNLOADS

PLAY FEATURED GAMES FROM THIS GUIDE

KEPLER RING LOGISTICS
STRATEGYPLAY ▶
KEPLER RING LOGISTICS

Minimalist hard-sci-fi orbital station builder with autonomous AI shuttle routing.

RAMEN ALLEY 2099
AI NOIRPLAY ▶
RAMEN ALLEY 2099

Interrogate free-form AI suspects in a rain-soaked cyber alley. Every playthrough generates a new culprit.

IRON GRID PROTOCOL
TACTICSPLAY ▶
IRON GRID PROTOCOL

Turn-based industrial mecha skirmish where an LLM tactical commander narrates and counters your squad.

MORE SYNTHPLAY GUIDES
CREATOR GUIDE
How to Build and Publish an AI-Generated HTML5 Game for Free in 60 Seconds
PLAYER GUIDE
10 Best Free Cyberpunk & AI Browser Games You Can Play Instantly (No Download)
CREATOR GUIDE
Building Playable Canvas2D & WebGL Games with Cursor, Claude, and DeepSeek