Zone endpoints pass the curtain (embeds on members' sites must load while the app is curtained)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-29 17:21:08 -05:00
parent e66a38dd74
commit e36b590788
+3 -1
View File
@@ -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);