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);