Zones: ad-blocker proofing. House creatives served as /art/house-<slot>.svg (EasyList blocks any URL with an IAB size token like -728x90.), zone owners told not to wrap the tag in ad-named elements

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-08 15:00:50 -05:00
parent c328d03fa0
commit 4ac95bd0c0
13 changed files with 15 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="50" viewBox="0 0 320 50" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="320" height="50" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="319" height="49" rx="6" fill="none" stroke="#2A3A56"/><circle cx="304" cy="34" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="18" y="30" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="16" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><rect x="192" y="11" width="110" height="28" rx="5" fill="#3B9DFF"/><text x="247" y="30" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="12" fill="#061225">Get your link</text></svg>

After

Width:  |  Height:  |  Size: 768 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="250" viewBox="0 0 300 250" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="300" height="250" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="299" height="249" rx="6" fill="none" stroke="#2A3A56"/><circle cx="284" cy="234" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="24" y="70" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="30" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="24" y="110" font-family="Segoe UI,Arial,sans-serif" font-size="16" fill="#AFC0D8">One link. Every page you promote, in turn.</text><text x="24" y="134" font-family="Segoe UI,Arial,sans-serif" font-size="14" fill="#6E82A3">Weights, hours, health checks, real numbers.</text><rect x="24" y="170" width="140" height="38" rx="6" fill="#3B9DFF"/><text x="94" y="195" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="14" fill="#061225">Get your link</text></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="600" viewBox="0 0 120 600" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="120" height="600" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="119" height="599" rx="6" fill="none" stroke="#2A3A56"/><text x="12" y="46" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="22" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="12" y="84" font-family="Segoe UI,Arial,sans-serif" font-size="12" fill="#AFC0D8">One link.</text><text x="12" y="102" font-family="Segoe UI,Arial,sans-serif" font-size="12" fill="#AFC0D8">Every page</text><text x="12" y="120" font-family="Segoe UI,Arial,sans-serif" font-size="12" fill="#AFC0D8">you promote,</text><text x="12" y="138" font-family="Segoe UI,Arial,sans-serif" font-size="12" fill="#AFC0D8">in turn.</text><text x="12" y="176" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">Bots filtered</text><text x="12" y="194" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">on the server.</text><text x="12" y="222" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">Click ids</text><text x="12" y="240" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">pass through.</text><text x="12" y="268" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">Your own</text><text x="12" y="286" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#6E82A3">short domain.</text><circle cx="60" cy="420" r="22" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><rect x="12" y="540" width="96" height="32" rx="6" fill="#3B9DFF"/><text x="60" y="561" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="12" fill="#061225" text-anchor="middle">Start free</text></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="728" height="90" viewBox="0 0 728 90" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="728" height="90" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="727" height="89" rx="6" fill="none" stroke="#2A3A56"/><circle cx="712" cy="74" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="18" y="52" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="22" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="132" y="49" font-family="Segoe UI,Arial,sans-serif" font-size="13" fill="#AFC0D8">One link. Every page you promote, in turn.</text><rect x="600" y="31" width="110" height="28" rx="5" fill="#3B9DFF"/><text x="655" y="50" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="12" fill="#061225">Get your link</text></svg>

After

Width:  |  Height:  |  Size: 908 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="336" height="280" viewBox="0 0 336 280" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="336" height="280" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="335" height="279" rx="6" fill="none" stroke="#2A3A56"/><circle cx="318" cy="262" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="26" y="74" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="32" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="26" y="116" font-family="Segoe UI,Arial,sans-serif" font-size="17" fill="#AFC0D8">One link. Every page you promote, in turn.</text><text x="26" y="142" font-family="Segoe UI,Arial,sans-serif" font-size="14" fill="#6E82A3">Weights, hours, health checks, real numbers.</text><rect x="26" y="186" width="150" height="40" rx="6" fill="#3B9DFF"/><text x="101" y="213" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="15" fill="#061225" text-anchor="middle">Start free</text></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250" viewBox="0 0 250 250" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="250" height="250" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="249" height="249" rx="6" fill="none" stroke="#2A3A56"/><circle cx="232" cy="232" r="7" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="20" y="62" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="28" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="20" y="100" font-family="Segoe UI,Arial,sans-serif" font-size="15" fill="#AFC0D8">One link. Every page</text><text x="20" y="121" font-family="Segoe UI,Arial,sans-serif" font-size="15" fill="#AFC0D8">you promote, in turn.</text><text x="20" y="150" font-family="Segoe UI,Arial,sans-serif" font-size="12.5" fill="#6E82A3">Bots filtered. Real numbers.</text><rect x="20" y="182" width="130" height="36" rx="6" fill="#3B9DFF"/><text x="85" y="206" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="14" fill="#061225" text-anchor="middle">Start free</text></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="468" height="60" viewBox="0 0 468 60" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="468" height="60" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="467" height="59" rx="6" fill="none" stroke="#2A3A56"/><circle cx="452" cy="44" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="18" y="37" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="22" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="132" y="34" font-family="Segoe UI,Arial,sans-serif" font-size="13" fill="#AFC0D8">One link. Every page you promote, in turn.</text><rect x="340" y="16" width="110" height="28" rx="5" fill="#3B9DFF"/><text x="395" y="35" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="12" fill="#061225">Get your link</text></svg>

After

Width:  |  Height:  |  Size: 908 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="125" height="125" viewBox="0 0 125 125" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="125" height="125" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="124" height="124" rx="6" fill="none" stroke="#2A3A56"/><text x="12" y="40" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="20" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="12" y="64" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#AFC0D8">One link,</text><text x="12" y="79" font-family="Segoe UI,Arial,sans-serif" font-size="11" fill="#AFC0D8">every page.</text><rect x="12" y="92" width="84" height="24" rx="6" fill="#3B9DFF"/><text x="54" y="108" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="11" fill="#061225" text-anchor="middle">Start free</text></svg>

After

Width:  |  Height:  |  Size: 878 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="600" viewBox="0 0 160 600" role="img" aria-label="LinkSpin, one link, every page you promote"><rect width="160" height="600" rx="6" fill="#0B1220"/><rect x="0.5" y="0.5" width="159" height="599" rx="6" fill="none" stroke="#2A3A56"/><circle cx="136" cy="18" r="8" fill="none" stroke="#3B9DFF" stroke-width="3" stroke-dasharray="30 12"/><text x="80" y="60" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="800" font-size="22" fill="#E6EDF7">Link<tspan fill="#3B9DFF">Spin</tspan></text><text x="80" y="110" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-size="14" fill="#AFC0D8">One link.</text><text x="80" y="132" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-size="14" fill="#AFC0D8">Every page</text><text x="80" y="154" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-size="14" fill="#AFC0D8">you promote.</text><rect x="20" y="480" width="120" height="34" rx="6" fill="#3B9DFF"/><text x="80" y="502" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="13" fill="#061225">Get your link</text></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+1 -1
View File
@@ -21,7 +21,7 @@
$('rows').querySelectorAll('[data-del]').forEach(b => b.addEventListener('click', async () => { if (!await dialog({ title: 'Remove this zone?', text: 'The tag on your site stops showing ads. Credits already earned stay.', ok: 'Remove', danger: true })) return; try { await api('/api/my/zones/' + b.dataset.del, { remove: true }); SEL = null; $('tagPanel').hidden = true; load(); } catch (e) { toast(e.message, true); } }));
if (SEL && Z.find(z => z.id === SEL)) showTag(SEL);
}
function showTag(id) { const z = Z.find(x => x.id === id); if (!z) return; SEL = id; $('tagPanel').hidden = false; $('tagTitle').textContent = 'Embed tag · ' + z.name; $('tagCode').textContent = tag(z); $('tagNote').textContent = 'Paste it where the banner should appear (' + z.size + '). It sizes itself and never loads more than one ad.'; $('tagCopy').onclick = () => CR.copy(tag(z)); $('tagCheck').onclick = async () => { await load(); const zz = Z.find(x => x.id === id); toast(zz && zz.lastSeen && Date.now() - zz.lastSeen < 3600e3 ? 'Live: last view ' + ago(zz.lastSeen) : 'No view in the last hour. Is the tag on a page people open?', !(zz && zz.lastSeen && Date.now() - zz.lastSeen < 3600e3)); }; }
function showTag(id) { const z = Z.find(x => x.id === id); if (!z) return; SEL = id; $('tagPanel').hidden = false; $('tagTitle').textContent = 'Embed tag · ' + z.name; $('tagCode').textContent = tag(z); $('tagNote').textContent = 'Paste it where the banner should appear (' + z.size + '). It sizes itself and never loads more than one ad. Tip: do not wrap it in an element whose class or id contains "ad", "banner" or "sponsor" (ad blockers hide those), and if you test with an ad blocker on, pause it for your own site first.'; $('tagCopy').onclick = () => CR.copy(tag(z)); $('tagCheck').onclick = async () => { await load(); const zz = Z.find(x => x.id === id); toast(zz && zz.lastSeen && Date.now() - zz.lastSeen < 3600e3 ? 'Live: last view ' + ago(zz.lastSeen) : 'No view in the last hour. Is the tag on a page people open?', !(zz && zz.lastSeen && Date.now() - zz.lastSeen < 3600e3)); }; }
$('newBtn').addEventListener('click', async () => {
const v = await dialog({ title: 'Add a zone', text: 'One zone per spot on a page. Paid ads only serve on the site you name here; anywhere else the tag shows the house banner.', fields: [{ k: 'name', label: 'Name', placeholder: 'My blog · sidebar', max: 60 }, { k: 'site', label: 'Site it lives on (required)', placeholder: 'myblog.com', max: 80 }, { k: 'size', label: 'Size: ' + (SIZES.join(', ') || '728x90, 468x60, 300x250, 160x600, 320x50'), value: '728x90', mono: true }], ok: 'Create' });
if (!v) return; try { const r = await api('/api/my/zones', v); SEL = r.zone.id; toast('Zone created. Copy the tag.'); load(); } catch (e) { toast(e.message, true); }
+1 -1
View File
@@ -31,6 +31,6 @@
</div>
</div>
<script src="/assets/cr-shell.js?v=20261008a"></script>
<script src="/assets/zones-screen.js?v=20260929a"></script>
<script src="/assets/zones-screen.js?v=20261008a"></script>
</body>
</html>
+1 -1
View File
@@ -888,7 +888,7 @@ const server = http.createServer(async (req, res) => {
const u = new URL(req.url, 'http://x');
const p = u.pathname;
// 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-');
const zonePath = p === '/z.js' || p === '/z/nas' || p.startsWith('/api/zone/') || p.startsWith('/banners/linkspin-') || p.startsWith('/art/house-');
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)
+3 -1
View File
@@ -9,7 +9,9 @@ const path = require('path');
const crypto = require('crypto');
let DATA_DIR = null, ads = null, siteHost = 'linkspin.app';
const SIZES = { '728x90': [728, 90], '468x60': [468, 60], '300x250': [300, 250], '336x280': [336, 280], '250x250': [250, 250], '125x125': [125, 125], '160x600': [160, 600], '120x600': [120, 600], '320x50': [320, 50] }; // + 336x280 / 250x250 / 125x125 / 120x600 (Marty 2026-10-07)
const HOUSE = { '728x90': '/banners/linkspin-728x90.svg', '468x60': '/banners/linkspin-468x60.svg', '300x250': '/banners/linkspin-300x250.svg', '336x280': '/banners/linkspin-336x280.svg', '250x250': '/banners/linkspin-250x250.svg', '125x125': '/banners/linkspin-125x125.svg', '160x600': '/banners/linkspin-160x600.svg', '120x600': '/banners/linkspin-120x600.svg', '320x50': '/banners/linkspin-320x50.svg' };
// neutral file names on purpose: EasyList blocks any URL with an IAB size token like '-728x90.' (Marty's own blocker hid
// the first zone test on stackpol.com, 2026-10-08)
const HOUSE = { '728x90': '/art/house-leader.svg', '468x60': '/art/house-strip.svg', '300x250': '/art/house-box.svg', '336x280': '/art/house-panel.svg', '250x250': '/art/house-square.svg', '125x125': '/art/house-tile.svg', '160x600': '/art/house-tower.svg', '120x600': '/art/house-column.svg', '320x50': '/art/house-bar.svg' };
const NAS_SIZES = new Set(['728x90', '468x60']); // the sizes Network Ad Space serves through its showadss.php tag
const NAS_TAG = (w, h) => '<script src="https://www.networkadspace.com/showadss.php?w=' + w + '&h=' + h + '&n=1&bw=' + w + '&bh=' + h + '&c=999"></script>';
const BOT = /bot|crawl|spider|slurp|facebookexternalhit|preview|telegrambot|whatsapp|curl|wget|python-requests|headless/i;