Spamhaus DBL cleanup (2026-11-17): close the ad-click redirector, mail links on the share domain
- /api/ads/click/<id> only redirects off-site for an active campaign (or its owner). Ended, paused, archived and flagged campaigns (488 of them, e.g. #164 -> shrt1.xyz) kept forwarding forever, a standing instantadpay.com redirector. They now land on the home page, uncounted. - mailer.js rewrites every instantadpay.com URL in subject/text/html and List-Unsubscribe to MAIL_BASE (default https://instantadpay.link; '' = off). Email addresses and subdomains untouched. - Share hosts answer /unsubscribe (GET + RFC 8058 POST) and /banners/* in place; leaderboard, blog, presentation, partners, launch, plays, bixpay, wall are pages, not usernames (none taken). - NAS syndicated ad click URLs go out on instantadpay.link (NAS_CLICK_BASE) for new pushes. - toolkit.js member links (AI writer, handout QR, split-test, partner promo) use shareDomain. - my.js: banner "copy URL" on the share domain; bridge link (Wednesday/Friday) now builds from the share-form invite line (it silently fell back to the plain invite). my.js?v=20261117dbl. iap-qa member: 0 bugs; networksso-partner e2e all passed on rerun. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -76,7 +76,7 @@ async function pushCampaign(c, opts = {}) {
|
||||
Name, Email, PaymentDetails, EDate, sp, width, height, BannerURL, pid, ref_by, catid)
|
||||
VALUES (?,?,?,?,?,?,0,1,?,?,?,?,?,?,'',?,?,?,?,0,?)`,
|
||||
// clicks route through our redirect so they count and carry the network site as the referrer
|
||||
[token, c.title || null, c.type === 'text' ? (c.body || null) : null, 'https://instantadpay.com/api/ads/click/' + c.id,
|
||||
[token, c.title || null, c.type === 'text' ? (c.body || null) : null, (process.env.NAS_CLICK_BASE || 'https://instantadpay.link') + '/api/ads/click/' + c.id,
|
||||
assigned, assigned, now, kind.adtype,
|
||||
opts.name || 'InstantAdPay member', opts.email || 'ads@instantadpay.com',
|
||||
'InstantAdPay campaign #' + c.id, edate,
|
||||
@@ -122,7 +122,7 @@ async function deactivate(nasAdId) {
|
||||
// point an existing NAS ad at our click redirect (migration for rows pushed before 2026-09-10)
|
||||
async function setClickUrl(nasAdId, campaignId) {
|
||||
if (!enabled()) return { skipped: 'flag-off' };
|
||||
await q('UPDATE sponsorads SET WebsiteURL=? WHERE ID=?', ['https://instantadpay.com/api/ads/click/' + Number(campaignId), Number(nasAdId)]);
|
||||
await q('UPDATE sponsorads SET WebsiteURL=? WHERE ID=?', [(process.env.NAS_CLICK_BASE || 'https://instantadpay.link') + '/api/ads/click/' + Number(campaignId), Number(nasAdId)]);
|
||||
return { ok: true };
|
||||
}
|
||||
async function topUp(nasAdId, addImpressions, days) {
|
||||
|
||||
Reference in New Issue
Block a user