From e36b5907884666e72ff580c0212d942b931a3191 Mon Sep 17 00:00:00 2001 From: martbost Date: Tue, 29 Sep 2026 17:21:08 -0500 Subject: [PATCH] Zone endpoints pass the curtain (embeds on members' sites must load while the app is curtained) Co-Authored-By: Claude Fable 5.1 --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index b9896a8..89b7984 100644 --- a/server.js +++ b/server.js @@ -868,7 +868,9 @@ const server = http.createServer(async (req, res) => { try { const u = new URL(req.url, 'http://x'); const p = u.pathname; - if (curtained(req, res, u)) return; // nothing below this line runs for an uninvited visitor + // zone endpoints run on other people's sites and show only ad creatives, so they pass the curtain + const zonePath = p === '/z.js' || p === '/z/nas' || p.startsWith('/api/zone/') || p.startsWith('/banners/linkspin-'); + if (!zonePath && curtained(req, res, u)) return; // nothing below this line runs for an uninvited visitor // -- the rotator redirect: one hop, recorded, on any host (LinkSpin) let rm = /^\/r\/([a-z0-9]{4,12})$/i.exec(p);