Guides (Marty 2026-11-17, evergreen pages instead of a blog): /guides index, How ViralAdBlitz works, Is ViralAdBlitz legit? (VABShop 0xb584...2905 verified on Polygonscan, 10% x 5 levels to the first 5 Boost buyers within 20 places + 50% company, checked against the source and the live chain), Getting the most from your free account, FAQ (from the chatbot answers, FAQPage data); nav + footer links, sitemap, /faq -> /guides/faq, guides/faq reserved names, chatbot f-guides entry + fact; smoke 11 checks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:26:46 -06:00
parent e0adc62c31
commit 2fee105ad8
10 changed files with 333 additions and 7 deletions
+6 -3
View File
@@ -165,8 +165,10 @@ function oldLink(u) {
const ZONE_404 = 'ls-c6c515'; // LinkSpin zone "ViralAdBlitz not found" (300x250) on Marty's LinkSpin account (2026-11-15); '' = off
const PAGES = { '/': 'index.html', '/how': 'how.html', '/my': 'my.html', '/boost': 'boost.html', '/ledger': 'ledger.html', '/contract': 'contract.html', '/admin': 'admin.html',
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html' };
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'how', 'my', 'boost', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy']);
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html',
// Guides (Marty 2026-11-17, evergreen pages instead of a blog)
'/guides': 'guides.html', '/guides/how-it-works': 'guide-how.html', '/guides/is-it-legit': 'guide-legit.html', '/guides/free-account': 'guide-free.html', '/guides/faq': 'guide-faq.html' };
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'how', 'my', 'boost', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy', 'guides', 'faq']);
const challenges = new Map();
const tickets = new Map();
const srcHost = raw => { try { const u = new URL(String(raw || '')); if (!/^https?:$/.test(u.protocol)) return ''; const h = u.hostname.toLowerCase().replace(/^www\./, ''); return h === C.site || h.endsWith('.' + C.site) || !h.includes('.') ? '' : h.slice(0, 80); } catch (e) { return ''; } };
@@ -237,10 +239,11 @@ const server = http.createServer(async (req, res) => {
if (p === '/my' || p === '/admin') ex['X-Frame-Options'] = 'DENY';
return sendFile(res, path.join(PUB, PAGES[p]), ex);
}
if (p === '/faq' || p === '/guides/') { res.writeHead(301, { Location: p === '/faq' ? '/guides/faq' : '/guides' }); return res.end(); }
if (/^\/r\/[^/]+$/.test(p)) { res.writeHead(302, { Location: '/' + encodeURIComponent(decodeURIComponent(p.slice(3))) }); return res.end(); }
if (p === '/sitemap.xml') {
const day = new Date().toISOString().slice(0, 10);
const urls = ['/', '/how', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
const urls = ['/', '/how', '/boost', '/ledger', '/contract', '/promote', '/guides', '/guides/how-it-works', '/guides/is-it-legit', '/guides/free-account', '/guides/faq', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' }));
return res.end('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' + urls + '</urlset>');
}