diff --git a/blog.js b/blog.js index fdd97c7..96219f1 100644 --- a/blog.js +++ b/blog.js @@ -110,7 +110,7 @@ function head(o) { + '
'; } function tail() { - return '
'; + return ''; } const authorBox = () => '
InstantAdPay
' + AUTHOR + 'Founder of InstantAdPay and the Crypto Team Build Network. Twenty-plus years of internet marketing, and a habit of writing down what actually worked.
'; const cardHtml = p => '' + (p.cover ? '' : '') + '

' + esc(p.title) + '

' + esc(p.excerpt) + '

' + fmtDate(p.publishedAt || p.created) + ' · ' + readMinutes(p.body) + ' min read' + (p.tags.length ? ' · ' + p.tags.map(esc).join(', ') : '') + '

'; diff --git a/chatbot.js b/chatbot.js index 84e0cca..7a188f9 100644 --- a/chatbot.js +++ b/chatbot.js @@ -138,7 +138,7 @@ const CANNED = [ a: 'Viral Banner Blitz (https://viralbannerblitz.com) is the network’s shared loop of 125x125 banners. InstantAdPay and LinkSpin members get one free post credit each day they sign in there (Sign in with InstantAdPay works). Real, verified visitors move the loop; a banner that rides out the end has cycled and earns network ad views, which are advertising, not cash. Weekly leaderboards count the visitors you send and the traffic sources they come from, with a prize pot paid in POL to the top three on each board. Your link is viralbannerblitz.com/?ref=your-username. Promo tools > Network sites > Viral Banner Blitz (or viralbannerblitz.com/promote) has your links, creatives, lines, headlines, an email and posts.' }, { id: 'network-sites-kits', title: 'Promo tools: Network sites', q: ['Where are the Downline Banners and Viral Banner Blitz banners?', 'How do I promote the other network sites?'], tags: ['network sites', 'promo kit', 'promote', 'creatives'], re: /(network sites|promo kit|promote (downline|viral|the other|network))/i, - a: 'Members > Promo tools > Network sites shows the promo kits of Downline Banners and Viral Banner Blitz with your InstantAdPay username already in every link: your personal links, creatives in 125x125, 468x60, 728x90, 300x250, 160x600, 1200x630 and 1080x1080 (download, copy the URL or copy ready HTML that links to you), 5 short lines, 3 headlines, an email and 2 social posts. Your username works as your sponsor link on those sites even if you never visited them. Each site keeps its own kit, so the copy here is always the current one; the same kit is on each site’s Promote page.' }, + a: 'Members > Promo tools > Network sites shows the promo kits of Downline Banners and Viral Banner Blitz with your InstantAdPay username already in every link: your personal links, creatives in 125x125, 468x60, 728x90, 300x250, 160x600, 1200x630 and 1080x1080 (download, copy the URL or copy ready HTML that links to you), 5 short lines, 3 headlines, an email and 2 social posts. Your username works as your sponsor link on those sites even if you never visited them. Each site keeps its own kit, so the copy here is always the current one; the same kit is on each site’s Promote page. Each link also has a tracked version that goes through LinkSpin first (so the network can see which site sent the visit) and then opens the same page with your username; use either one.' }, { id: 'wired-wednesday', title: 'Wired Wednesday bonus', q: ['What is Wired Wednesday?', 'What happens on Wednesday?'], tags: ['wired wednesday', 'bonus credits', 'promotion'], re: /(wired wednesday|wednesday (bonus|promo|deal|special)|what happens on wednesday)/i, a: 'Wired Wednesday: every Wednesday (Central time, midnight to midnight), any ad package from $20 up (the Activation pack and above; there is no $10 pack) earns +25% bonus credits, wired into your balance the moment the purchase settles. They are purchased-grade, so they run on any format, login ads included, and the bonus is labelled in your credit log. The page instantadpay.com/wednesday shows whether it is live now and the next date; add ?ref=yourusername to that address and anyone who joins from it is your referral. Every pack still pays its sponsor line in the same on-chain transaction. Credits buy ad delivery and cannot be withdrawn; no income is guaranteed.' }, diff --git a/leaderboard.js b/leaderboard.js index 5bea2b3..ee6daad 100644 --- a/leaderboard.js +++ b/leaderboard.js @@ -142,7 +142,7 @@ async function renderPage() { const w = winners(); if (w.length) h += '

Past winners

' + w.slice(0, 12).map(x => '
' + (x.kind === 'week' ? 'Week of ' : 'Month of ') + fmtD(x.start) + ': ' + (x.top[0] ? esc(x.top[0].name) + ' (' + x.top[0].sales + ' sold, $' + x.top[0].usd + ')' : 'no sales') + (x.granted && x.granted.length ? ' · awarded: ' + x.granted.map(g => esc(g.name) + ' +' + g.credits.toLocaleString()).join(', ') : (x.prize ? ' · prize ' + esc(x.prize) : '')) + '
').join(''); h += '

Sales are $ of packages bought by members you directly sponsor. Prizes are advertising credits or packages, never cash. No income is guaranteed.

'; - h += ''; + h += ''; return h; } module.exports = { init, view, compute, renderPage, rolloverTick, winners, periodBounds }; diff --git a/netsites.js b/netsites.js index 2536f92..e9288b4 100644 --- a/netsites.js +++ b/netsites.js @@ -32,9 +32,29 @@ function refresh() { return inflight; } function list() { if (Date.now() - cache.at > TTL) refresh(); return cache.list; } +// Tracked links (Marty 2026-11-14: "make sure each of these sites is its own traffic source and link spun so we can track it"): each +// entry also gets go = the LinkSpin network link for that site with ?src=, so a click shows in LinkSpin Reports under the +// site that sent it (LinkSpin netlinks.js: fixed codes on the admin account). This site = NETWORK_SITE_ID, else the request host. +// No go for this site itself, or when this site cannot be told (a test host): the page then uses the plain url. +const CODES = { iap: 'nwiap', linkspin: 'nwls', dlb: 'nwdlb', vbb: 'nwvbb', stackpol: 'nwsp', earnerscorner: 'nwec' }; +const linksBase = () => String(process.env.NETWORK_LINKS_BASE || 'https://linkspin.app').trim().replace(/\/+$/, ''); +const hostOf = u => { try { return new URL(u).hostname.toLowerCase().replace(/^www\./, ''); } catch (e) { return ''; } }; +function selfId(req, l) { + const env = String(process.env.NETWORK_SITE_ID || '').trim().toLowerCase(); if (env) return env; + const h = String((req && req.headers && (req.headers['x-forwarded-host'] || req.headers.host)) || '').split(',')[0].trim().toLowerCase().replace(/:\d+$/, '').replace(/^www\./, ''); + const m = h && (l || list()).find(s => hostOf(s.url) === h); return m ? m.id : ''; +} +// the LinkSpin-tracked link to site `id` sent from site `from` (from = id: the site's own promo kit); extra = { s1: member username, s2: one path segment } +function tracked(id, from, extra) { + const code = CODES[id]; if (!code || !from) return ''; + const q = new URLSearchParams({ src: from }); for (const [k, v] of Object.entries(extra || {})) if (v) q.set(k, String(v)); + return linksBase() + '/r/' + code + '?' + q.toString(); +} +function withGo(l, me) { return l.map(s => { const go = me && s.id !== me ? tracked(s.id, me) : ''; return go ? Object.assign({}, s, { go }) : s; }); } // GET /api/network-sites: public, cacheable, the same answer on every page function handle(req, res) { + const l = list(); res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'public, max-age=300', 'X-Content-Type-Options': 'nosniff' }); - res.end(JSON.stringify(list())); + res.end(JSON.stringify(withGo(l, selfId(req, l)))); } -module.exports = { list, handle, refresh, FALLBACK, _state: () => cache }; +module.exports = { list, handle, refresh, tracked, selfId, withGo, CODES, FALLBACK, _state: () => cache }; diff --git a/public/admin.html b/public/admin.html index 05a9469..167d1dd 100644 --- a/public/admin.html +++ b/public/admin.html @@ -652,7 +652,7 @@ - + diff --git a/public/assets/common.js b/public/assets/common.js index 1041f6b..96ca350 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -79,7 +79,7 @@ window.IAP = (function () { const paint = list => { d.innerHTML = 'Part of the networkOne account across the network:' + list.map(s => (s.id === 'iap' || /instantadpay\.com/.test(s.url)) ? '' + esc(s.name) + ' (you are here)' - : '' + esc(s.name) + '').join(''); + : '' + esc(s.name) + '').join(''); }; paint(NET_FALLBACK); networkSites().then(paint); diff --git a/public/assets/netkits.js b/public/assets/netkits.js index 029fa09..0d48e17 100644 --- a/public/assets/netkits.js +++ b/public/assets/netkits.js @@ -29,7 +29,11 @@ window.IAPNetKits = (function () { const by = {}; const angles = []; (k.creatives || []).forEach(c => { if (!by[c.angle]) { by[c.angle] = []; angles.push(c); } by[c.angle].push(c); }); let h = '

' + esc(site.blurb) + '

'; - h += k.links.map(l => '
' + esc(l.label) + '
' + esc(l.url) + '
' + cb(l.url, 'Copy link', '') + '
').join(''); + // tracked links (2026-11-14): the site's LinkSpin network link, credited here to InstantAdPay as the site that sent the visit + const strip = (label, url, cls) => '
' + esc(label) + '
' + esc(url) + '
' + cb(url, 'Copy link', cls) + '
'; + const fromHere = u => String(u).replace(/([?&]src=)[a-z0-9]+/i, '$1iap'); + h += k.links.map(l => strip(l.label, l.url, '') + (l.tracked ? strip(l.label + ', tracked', fromHere(l.tracked), 'sec') : '')).join(''); + if (k.links.some(l => l.tracked)) h += '

A tracked link goes through LinkSpin first, so the network can see the visit came from InstantAdPay, then opens the same page with your username. Use either one.

'; h += '

Creatives

every HTML snippet already links to you
'; angles.forEach(a => { h += '
' + esc(a.angleLabel) + ' ' + by[a.angle].length + ' sizes
' diff --git a/public/assets/netline.js b/public/assets/netline.js index e7e79b4..9cbf920 100644 --- a/public/assets/netline.js +++ b/public/assets/netline.js @@ -14,7 +14,7 @@ host.appendChild(box); var paint = function (list) { box.innerHTML = (hasLegal ? '' : 'Terms · Earnings Disclaimer · Privacy · Contract · Ledger · Support') + 'TrustClickz · 615 Green Valley Drive, Moody, AL 35004Part of the networkOne account across the network:' + list.map(function (s) { - return s.id === me ? '' + esc(s.name) + ' (you are here)' : '' + esc(s.name) + ''; + return s.id === me ? '' + esc(s.name) + ' (you are here)' : '' + esc(s.name) + ''; }).join(''); }; paint(FALLBACK); diff --git a/public/bixpay.html b/public/bixpay.html index 71c79ba..371b344 100644 --- a/public/bixpay.html +++ b/public/bixpay.html @@ -165,7 +165,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/contract.html b/public/contract.html index d9041f5..896daed 100644 --- a/public/contract.html +++ b/public/contract.html @@ -143,7 +143,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford.
- + diff --git a/public/conversion-tracking.html b/public/conversion-tracking.html index d9617d8..e87807f 100644 --- a/public/conversion-tracking.html +++ b/public/conversion-tracking.html @@ -265,8 +265,8 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + - + diff --git a/public/disclaimer.html b/public/disclaimer.html index ebff14c..f17f610 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -27,7 +27,7 @@

You decide whether, and how much, to spend. Never spend more than you can afford to lose.

- + diff --git a/public/earning.html b/public/earning.html index db7e2b8..7b5d4b2 100644 --- a/public/earning.html +++ b/public/earning.html @@ -97,7 +97,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- - + + diff --git a/public/facts.html b/public/facts.html index 217a745..90674a7 100644 --- a/public/facts.html +++ b/public/facts.html @@ -127,7 +127,7 @@ - + diff --git a/public/friday.html b/public/friday.html index 1eea253..14eec51 100644 --- a/public/friday.html +++ b/public/friday.html @@ -72,7 +72,7 @@ - - + + diff --git a/public/games.html b/public/games.html index 292c5d6..060a651 100644 --- a/public/games.html +++ b/public/games.html @@ -79,7 +79,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- - + + diff --git a/public/index.html b/public/index.html index 1b692db..3c1c1eb 100644 --- a/public/index.html +++ b/public/index.html @@ -506,7 +506,7 @@ - + diff --git a/public/join.html b/public/join.html index 29998cb..03ca690 100644 --- a/public/join.html +++ b/public/join.html @@ -158,7 +158,7 @@ InstantAdPay · Contract · Terms · Privacy · Disclaimer - + diff --git a/public/launch.html b/public/launch.html index 6e02a8b..08e0c2c 100644 --- a/public/launch.html +++ b/public/launch.html @@ -106,7 +106,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/ledger.html b/public/ledger.html index ed32fc6..3267666 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -41,7 +41,7 @@
InstantAdPay is the Polygon hub of the Crypto Team Build Network.
- + diff --git a/public/my.html b/public/my.html index 7db6720..a1ff820 100644 --- a/public/my.html +++ b/public/my.html @@ -1306,11 +1306,11 @@ - + - + diff --git a/public/partners.html b/public/partners.html index 8ff51b7..fce630d 100644 --- a/public/partners.html +++ b/public/partners.html @@ -131,8 +131,8 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford to lose.
- + - + diff --git a/public/plays.html b/public/plays.html index c46f67f..9295791 100644 --- a/public/plays.html +++ b/public/plays.html @@ -194,7 +194,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford.
- + diff --git a/public/presentation.html b/public/presentation.html index 00da53b..15ea9d7 100644 --- a/public/presentation.html +++ b/public/presentation.html @@ -87,6 +87,6 @@
InstantAdPay is the Polygon hub of the Crypto Team Build Network.
- + diff --git a/public/privacy.html b/public/privacy.html index ebf04f6..11d3a71 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -32,7 +32,7 @@

We use reasonable safeguards, but no system is perfectly secure. Protect your email and your wallet.

- + diff --git a/public/refuel-guide.html b/public/refuel-guide.html index 7d7c16c..36eee29 100644 --- a/public/refuel-guide.html +++ b/public/refuel-guide.html @@ -261,6 +261,6 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/support.html b/public/support.html index 2408943..a146f48 100644 --- a/public/support.html +++ b/public/support.html @@ -20,7 +20,7 @@

Loading…

We will never ask for your recovery phrase or private key, and nobody from InstantAdPay will message you first asking for money or wallet access.

- + diff --git a/public/terms.html b/public/terms.html index 40a6933..a516dc8 100644 --- a/public/terms.html +++ b/public/terms.html @@ -42,7 +42,7 @@

See also the Disclaimer and Privacy Policy. Questions: the support page or support@instantadpay.com.

- + diff --git a/public/tx.html b/public/tx.html index 69fb359..62889d1 100644 --- a/public/tx.html +++ b/public/tx.html @@ -35,7 +35,7 @@

← Back to the live ledger · Read the contract review

- + diff --git a/public/wall.html b/public/wall.html index 636a485..e7ef2ed 100644 --- a/public/wall.html +++ b/public/wall.html @@ -48,7 +48,7 @@ - + diff --git a/public/wallets.html b/public/wallets.html index 5fa6d73..ac7bbaf 100644 --- a/public/wallets.html +++ b/public/wallets.html @@ -123,7 +123,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never share your recovery phrase.
- + diff --git a/public/wednesday.html b/public/wednesday.html index 8528e18..4a0db53 100644 --- a/public/wednesday.html +++ b/public/wednesday.html @@ -65,7 +65,7 @@ - - + + diff --git a/releases.js b/releases.js index f566080..acd18fc 100644 --- a/releases.js +++ b/releases.js @@ -65,7 +65,7 @@ function renderPage() { h += '

Release notes

'; h += v.notes.length ? v.notes.map(n => '

' + esc(n.title) + n.tags.map(tagChip).join('') + '

' + fmt(n.date) + '

' + bodyHtml(n.body) + '
').join('') : '

No notes yet.

'; h += '

Suggestions and bug reports: the chat bubble on any page, or the InstantAdPay Telegram group.

'; - h += ''; + h += ''; return h; } module.exports = { init, notes, roadmap, saveNote, saveRoadmap, remove, publicView, renderPage, bodyHtml, TAGS, STATUSES }; diff --git a/server.js b/server.js index 085768b..6749759 100644 --- a/server.js +++ b/server.js @@ -6286,7 +6286,7 @@ const server = http.createServer(async (req, res) => { + '' + '
' + esc(label) + ' badge for @' + esc(un) + '

@' + esc(un) + ' unlocked ' + label + '

' + esc(sub.charAt(0).toUpperCase() + sub.slice(1)) + '. On InstantAdPay every ad package that sells pays the sponsor in the same transaction, straight to their wallet, on-chain.

' + 'Join @' + esc(un) + '\u2019s line free

Advertising with a performance referral program. Not an investment; no income is guaranteed.

' - + ''; + + ''; res.writeHead(200, baseHeaders({ 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'public, max-age=300' })); return res.end(html); } diff --git a/tank.js b/tank.js index 280bbdd..5bc115f 100644 --- a/tank.js +++ b/tank.js @@ -105,8 +105,10 @@ async function lockedWhy(email) { async function waiting() { // one network tank (Marty 2026-11-14: the InstantAdPay and LinkSpin tanks should show the same people): waiting accounts that // never signed in here (BTC4Hits and LinkSpin arrivals) count too, as on LinkSpin; quiet accounts the hub made (joinedVia - // 'hub') stay out, as LinkSpin leaves out its hub-made ones. The weekly email only counts the tank, it never mails it. - const all = (await accounts.listAll(1e6, { shells: true })).filter(a => !(a.joinedVia === 'hub' && accounts.isUnclaimedShell(a))); + // 'hub') count too since 2026-11-14 (Marty: the unsponsored old VBB / Downline Banners members go into the holding tank; adopting + // one sends the normal adoption email). Rule 3 still keeps out anyone the hub reports locked or sponsored. The weekly email + // only counts the tank, it never mails it. + const all = await accounts.listAll(1e6, { shells: true }); const cand = all.filter(a => inTank(a) && !remoteOpen(a.email)); // one network tank: someone adopted on LinkSpin is not waiting here const held = await heldSet(cand); const rows = cand.filter(a => !held.has(lc(a.email))); // rule 3: locked or sponsored elsewhere // what each of them has earned by surfing on their own, no sponsor (Marty, 2026-09-29), so an adopter can spot the workers