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