O1 · Fair FIFO Waiting Room Client Watermark + Origin HMAC Pass Verifier

Keep checkout fast when 10,000 visitors arrive at once.

Drop one 9 KB script tag onto your storefront and add a 10-line HMAC pass check on your checkout endpoint. Automated bots get a polite 429 Retry-After pause; real buyers get a fair FIFO waiting room with live position updates and optional canvas Pinball.

Instant Self-Serve Key Generator Live in sites.json
Interactive Watermark Simulator

Model your traffic spike and bot-shedding ratio.

Drag the sliders to see when FourWay transitions from GO (direct pass) to YIELD (soft queue) and PARK (FIFO Waiting Room).

420 req/s
150 req/s
35%
Active Junction Signal PARK (FIFO Waiting Room + Pinball)

150 humans/s admitted (100% checkout CPU preserved)

Queue & Bot Telemetry

Human FIFO Wait: ~14s fair FIFO wait

Bot Traffic Shed: 147 req/s paused via HTTP 429 Retry-After

Defense-in-Depth Integration

1 script tag for browsers + 1 HMAC check for your server.

Client-side scripts alone can be bypassed by headless curl scripts. Pair w.js with fourway_verify_pass() on your checkout POST route so only cryptographic pass holders can mutate inventory.

Step 1 · Browser Watermark Tag (w.js) 9 KB gzip
<!-- Paste inside <head> of your storefront -->
<script src="https://fourway.io/w.js"
        data-site="site_demo"
        defer></script>
Step 2 · Origin HMAC Pass Verifier (PHP or Cloudflare Worker) Anti-curl guard
<?php
require_once 'fourway_gate.php';
$pass = $_COOKIE['fw_pass'] ?? $_SERVER['HTTP_X_FOURWAY_PASS'] ?? '';
if (!fourway_verify_pass($pass, 'replace_with_your_64_cha...', 'site_demo')) {
    http_response_code(429);
    header('Retry-After: 15');
    exit('Waiting room pass required.');
}