Traffic-exchange frames: framed pages open sign-in, Get a Position, My Team, wallet and off-site links in a new tab carrying ?ref=<sponsor>
Traffic exchanges, rotators and Massifly Adpoints show 5xyourteam.com inside another site's frame, where the browser drops the SameSite=Lax fx.ref and fx.sid cookies, so signing in, buying or joining from the frame lost the sponsor (Marty 2026-11-19). - common.js: framed (window.top !== window.self) -> /team, /join, /admin, /sso/ and off-site links get target=_blank rel=noopener (on load and again at click time); /team, /join and /sso/ links add ?ref= from the page's ?ref= (or ?r=), the coach page it is, or the cookie. The wallet buttons ([data-wallet-signin], Pay = [data-full-window]) open this page in a new tab with ?ref= instead of signing inside the frame. Public pages stay in the frame. - server: /sso/start?...&ref=<name> sets fx.ref first-party and 302s to the plain start; /sso/* sends X-Frame-Options DENY (/team and /admin already did). Sponsor rules unchanged. - coach.js marks the coach; join.js keeps Pay clickable when framed; asset tags bumped. Checked with the fake traffic-exchange harness (cross-site frame, JS a.click()): 11/11 flows open a new tab with the sponsor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@
|
||||
<section class="panel"><h3>Best Coach pot (last week)</h3><pre id="potOut" class="kit-pre"></pre></section>
|
||||
<section class="panel"><h3>Old-link map (JSON {"oldrefs": {"old": "network username"}})</h3><input type="file" id="oldFile" accept="application/json"><pre id="oldOut" class="kit-pre"></pre></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
FX.renderNav(''); FX.renderFooter();
|
||||
const $ = FX.$, esc = FX.esc;
|
||||
const u = decodeURIComponent(location.pathname.replace(/^\/|\/$/g, ''));
|
||||
document.body.dataset.pageRef = u; // framed: new-tab sign-in and Get a Position links carry ?ref=<this coach> (common.js)
|
||||
const d = await FX.getJSON('/api/coach?u=' + encodeURIComponent(u));
|
||||
if (d.error) { $('cName').textContent = 'No coach by that name yet'; return; }
|
||||
$('cName').textContent = '@' + d.username;
|
||||
$('cSince').textContent = 'Coach since ' + FX.when(d.since);
|
||||
$('cStats').innerHTML = '<div class="kvr"><span>Positions</span><b>' + FX.n(d.positions) + '</b></div><div class="kvr"><span>On the team</span><b>' + FX.n(d.team.length) + '</b></div><div class="kvr"><span>Picks started</span><b>' + FX.n(d.started) + '</b></div>';
|
||||
$('cTeam').innerHTML = d.team.length ? d.team.map(x => FX.card(x)).join('') : '<p class="muted">Their first picks show here.</p>';
|
||||
$('cJoin').href = d.joinUrl; $('cJoin').textContent = 'Join the network free under @' + d.username;
|
||||
$('cJoin').href = d.joinUrl; $('cJoin').textContent = 'Join the network free under @' + d.username; FX.frameLinks();
|
||||
})();
|
||||
|
||||
+35
-1
@@ -5,6 +5,40 @@ window.FX = (function () {
|
||||
const $ = id => document.getElementById(id);
|
||||
const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
||||
const getConfig = () => cfgP || (cfgP = fetch('/api/config').then(r => r.json()));
|
||||
// Traffic exchanges, rotators and Massifly Adpoints show these pages inside another site's frame, where the browser drops the
|
||||
// fx.ref and sign-in cookies (SameSite=Lax). Framed (Marty 2026-11-19, the IAP / PolHunter / ViralAdBlitz frame pattern): sign-in,
|
||||
// Get a Position, My Team and off-site links open in a new tab, a new tab back to this site carries ?ref=<sponsor> so it sets the
|
||||
// cookie first-party, and the wallet buttons (sign in, pay) open this page in a new tab instead. The sponsor: the page's own
|
||||
// ?ref= (or ?r=), else the coach page it is, else the cookie.
|
||||
const framed = (() => { try { return window.top !== window.self; } catch (e) { return true; } })();
|
||||
const REF_RE = /^[A-Za-z0-9_.-]{2,40}$|^0x[0-9a-fA-F]{40}$/;
|
||||
function pageRef() {
|
||||
const q = new URLSearchParams(location.search); const r = q.get('ref') || q.get('r');
|
||||
if (r && REF_RE.test(r)) return r;
|
||||
const pg = document.body && document.body.dataset.pageRef; if (pg && REF_RE.test(pg)) return pg;
|
||||
const c = /(?:^|;\s*)fx\.ref=([^;]+)/.exec(document.cookie); let v = ''; try { v = c ? decodeURIComponent(c[1]) : ''; } catch (e) {}
|
||||
return REF_RE.test(v) ? v : '';
|
||||
}
|
||||
const withRef = url => { const r = pageRef(); return r ? url + (url.indexOf('?') < 0 ? '?' : '&') + 'ref=' + encodeURIComponent(r) : url; };
|
||||
const NEW_TAB = /^\/(team|join|admin|sso)(\/|$)/; // sign-in, buying and member pages: never usable inside a frame
|
||||
function frameLink(a) {
|
||||
if (!framed || !a || !a.href || a.hasAttribute('download')) return;
|
||||
let x; try { x = new URL(a.href, location.href); } catch (e) { return; }
|
||||
if (!/^https?:$/.test(x.protocol)) return;
|
||||
const own = x.origin === location.origin;
|
||||
if (own && !NEW_TAB.test(x.pathname)) return; // public pages stay in the frame
|
||||
if (own && /^\/(team|join|sso)(\/|$)/.test(x.pathname) && !x.searchParams.get('ref')) { const r = pageRef(); if (r) { x.searchParams.set('ref', r); a.setAttribute('href', x.pathname + x.search + x.hash); } }
|
||||
a.target = '_blank'; if (!/noopener/.test(a.rel || '')) a.rel = ((a.rel || '') + ' noopener').trim();
|
||||
}
|
||||
const frameLinks = () => { if (framed) document.querySelectorAll('a[href]').forEach(frameLink); };
|
||||
if (framed) {
|
||||
document.addEventListener('click', e => {
|
||||
const t = e.target.closest && e.target.closest('a[href], [data-wallet-signin], [data-full-window]'); if (!t) return;
|
||||
if (t.tagName === 'A') return frameLink(t);
|
||||
e.preventDefault(); e.stopImmediatePropagation(); window.open(withRef(location.pathname), '_blank', 'noopener');
|
||||
}, true);
|
||||
document.addEventListener('DOMContentLoaded', frameLinks);
|
||||
}
|
||||
const short = a => a ? a.slice(0, 6) + '...' + a.slice(-4) : '';
|
||||
const n = x => Number(x || 0).toLocaleString('en-US');
|
||||
function status(msg, cls, id) { const el = $(id || 'status'); if (!el) return; el.hidden = !msg; el.className = 'note ' + (cls || ''); el.textContent = msg || ''; }
|
||||
@@ -110,7 +144,7 @@ window.FX = (function () {
|
||||
(root || document).querySelectorAll('[data-wallet-signin]').forEach(b => { b.onclick = async () => {
|
||||
try { status('Check your wallet for the sign-in message.'); await FXWallet.signIn(); location.reload(); } catch (e) { status(String(e && e.message || e).slice(0, 300), 'err'); } }; });
|
||||
}
|
||||
return { $, esc, getConfig, short, status, getJSON, post, n, polOf, when, ago, left, initials, renderNav, renderFooter, setWeek, weekNo, card, silentSso, signInBlock, wireSignIn };
|
||||
return { $, esc, getConfig, short, framed, pageRef, withRef, frameLink, frameLinks, status, getJSON, post, n, polOf, when, ago, left, initials, renderNav, renderFooter, setWeek, weekNo, card, silentSso, signInBlock, wireSignIn };
|
||||
})();
|
||||
// Network Weekend ribbon (Marty 2026-11-17): netweekend.js paints it only while a network event is live (dates from the hub through
|
||||
// /api/network-deals). Not on the 1080x1080 draft-day card or the admin page.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
if (!c.shop || !c.shop.live) { $('jPol').textContent = 'Positions open when the contract goes live.'; $('jBuy').disabled = true; return; }
|
||||
const q = await FX.getJSON('/api/quote?qty=' + $('jQty').value);
|
||||
$('jPol').textContent = q.error ? q.error : 'about ' + fmtPol(q.wei, 2) + ' POL at today\'s Chainlink price';
|
||||
$('jBuy').disabled = !!q.error || !me.signedIn;
|
||||
$('jBuy').disabled = !!q.error || (!me.signedIn && !FX.framed); // framed: the button opens this page in a new tab (common.js)
|
||||
}
|
||||
$('jQty').onchange = quote; quote();
|
||||
$('jBuy').onclick = async () => {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
<p id="status" class="note" hidden></p>
|
||||
<section class="panel" id="bList"></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/wallet.js?v=3"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
<section style="display:flex;flex-direction:column;gap:12px"><h2>The five tiers</h2><div class="cards" id="tiers"></div>
|
||||
<p class="small">Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Tap a card to flip it for the stats on the back.</p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/cards.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@
|
||||
<div class="r"><h3>The team</h3><p class="small" style="color:#4a587e">Milestones only. Every Monday this coach drafts people who joined the network without a sponsor and helps them get started.</p><div class="row"><a class="btn-gold" id="cJoin" href="https://instantadpay.com/?return=fivex&to=%2Fmy">Join the network free</a><a class="btn" href="/join">Coach a team of your own</a></div></div></section>
|
||||
<section class="cards" id="cTeam"></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/coach.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/coach.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<section><p class="kicker">CONTRACT</p><h1 style="font-size:44px">Check the contract yourself</h1><p class="muted">Read live from Polygon. No owner withdraw, no proxy, the split fixed in the code.</p></section>
|
||||
<section class="panel"><div class="tbl"><table id="facts"></table></div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/contract.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<section class="card"><h2>Prices and taxes</h2><p>Positions are priced in US dollars and paid in POL, whose price moves. You are responsible for any taxes on what you receive where you live.</p></section>
|
||||
<section class="card"><h2>Who to ask</h2><p>TrustClickz. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>.</p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -15,4 +15,4 @@ h1{margin:0;font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:108px
|
||||
</style></head><body data-page="draftday"><div class="dd"><img class="spot" src="/art/dd/spotlight.jpg" alt=""><img class="conf" src="/art/dd/confetti.png" alt=""><div class="top"><span class="wm">5X<b>YOUR</b>TEAM</span><span class="wk" id="ddWeek"></span></div>
|
||||
<h1>DRAFT DAY<br><span>RESULTS</span></h1><div class="rows" id="ddRows"></div>
|
||||
<div class="ft"><div><span id="ddStats"></span><span class="p" id="ddPot"></span></div><span class="url">5xyourteam.com</span></div></div>
|
||||
<script src="/assets/common.js?v=20261117z"></script><script src="/assets/misc.js?v=3"></script></body></html>
|
||||
<script src="/assets/common.js?v=20261119f"></script><script src="/assets/misc.js?v=3"></script></body></html>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
<section class="card"><h2>Check it yourself</h2><p>The <a href="/contract">contract page</a> reads the DraftPosition contract live from Polygon, and the <a href="/ledger">ledger</a> lists every payment with its transaction. The <a href="/cards">card collection</a> shows how picks level up.</p><p>Still stuck? Ask the chat assistant on any page, or open <a href="https://instantadpay.com/support" target="_blank" rel="noopener">network support</a>.</p></section>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<section class="card"><h2>More guides</h2><ul><li><a href="/guides/how-the-draft-works">How The Draft works</a>: Draft day, rounds, the pick clock, earned draft order, and what happens to picks that do not start.</li><li><a href="/guides/is-5xyourteam-legit">Is 5xYourTeam legit?</a>: The DraftPosition contract, the live ledger and exactly where the $10 goes.</li><li><a href="/guides/faq">5xYourTeam FAQ</a>: Short answers to the questions coaches ask most.</li></ul></section>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=5"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<section class="card"><h2>More guides</h2><ul><li><a href="/guides/how-the-draft-works">How The Draft works</a>: Draft day, rounds, the pick clock, earned draft order, and what happens to picks that do not start.</li><li><a href="/guides/is-5xyourteam-legit">Is 5xYourTeam legit?</a>: The DraftPosition contract, the live ledger and exactly where the $10 goes.</li><li><a href="/guides/coaching-your-picks">Coaching your picks</a>: Your team page, the five getting-started steps, site messages and who to help first.</li></ul></section>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=5"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<section class="card"><h2>More guides</h2><ul><li><a href="/guides/is-5xyourteam-legit">Is 5xYourTeam legit?</a>: The DraftPosition contract, the live ledger and exactly where the $10 goes.</li><li><a href="/guides/coaching-your-picks">Coaching your picks</a>: Your team page, the five getting-started steps, site messages and who to help first.</li><li><a href="/guides/faq">5xYourTeam FAQ</a>: Short answers to the questions coaches ask most.</li></ul></section>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=5"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<section class="card"><h2>More guides</h2><ul><li><a href="/guides/how-the-draft-works">How The Draft works</a>: Draft day, rounds, the pick clock, earned draft order, and what happens to picks that do not start.</li><li><a href="/guides/coaching-your-picks">Coaching your picks</a>: Your team page, the five getting-started steps, site messages and who to help first.</li><li><a href="/guides/faq">5xYourTeam FAQ</a>: Short answers to the questions coaches ask most.</li></ul></section>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=5"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@
|
||||
</main>
|
||||
<!-- PolHunter mission (every rebuilt network site gets one, Marty 2026-11-14): the 3 How The Draft steps -->
|
||||
<script src="https://polhunter.com/embed.js" data-slots="3" data-selector=".how .s" async></script>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/board.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
+3
-3
@@ -28,15 +28,15 @@
|
||||
<div class="potbox"><span class="lab">What you get</span><ul class="muted small" style="margin:0;padding-left:18px"><li>5 instant picks from this week's pool</li><li>A spot in every Monday draft, 5 rounds</li><li>Coaching tools: scouting stats, the steps, site messages, who to help first</li><li>A coach page and trading cards for your team</li><li>Up to 10 open picks at a time</li></ul></div></section>
|
||||
<section id="jSign" class="panel" hidden><h3>Sign in first</h3><p class="muted small">The position goes to the wallet you are signed in with.</p><div id="jSignBox"></div></section>
|
||||
<section class="panel dark"><h3 style="font-size:24px">Buy</h3><label class="small" for="jQty">How many positions</label><select id="jQty"></select><p class="muted" id="jPol"></p>
|
||||
<div class="row"><button type="button" class="btn-gold" id="jBuy" disabled>Pay with my wallet</button></div><p id="status" class="note" hidden></p>
|
||||
<div class="row"><button type="button" class="btn-gold" id="jBuy" data-full-window disabled>Pay with my wallet</button></div><p id="status" class="note" hidden></p>
|
||||
<p class="small">Anything you send above the exact price comes back to you in the same transaction. Payments are final once confirmed.</p></section>
|
||||
<section class="panel"><h3 style="font-size:24px">Where your $10 goes, in the same transaction</h3><div class="splitbar" id="splitbar"></div>
|
||||
<p class="small">Your sponsor gets 25% and levels 2 to 5 of your network sponsor line get 5% each. Only people who hold a position can receive a share: anyone in your line who does not is passed over and the share goes up to the next person who does. 10% goes to the weekly Best Coach pot and 45% to 5xYourTeam. The contract keeps nothing. Check it on the <a href="/contract">contract page</a> and every payment on the <a href="/ledger">ledger</a>.</p>
|
||||
<p class="small">A position buys a draft spot and coaching tools, not income. Nothing is promised.</p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/wallet.js?v=3"></script>
|
||||
<script src="/assets/join.js?v=3"></script>
|
||||
<script src="/assets/join.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
<section class="panel"><div class="tbl"><table id="rows"><thead><tr><th>WHEN</th><th>POSITION</th><th>PAID IN THE SAME TRANSACTION</th><th></th></tr></thead><tbody></tbody></table></div></section>
|
||||
<section class="panel"><h3 style="font-size:24px">Best Coach payouts</h3><div class="tbl"><table id="payouts"><thead><tr><th>WEEK</th><th>COACH</th><th>POL</th><th></th></tr></thead><tbody></tbody></table></div></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/ledger.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
<section class="card"><h2>Your choices</h2><p>You can ask us to remove your account and messages here. Records on the blockchain cannot be removed by anyone.</p></section>
|
||||
<section class="card"><h2>Contact</h2><p>TrustClickz. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>. Last updated November 15, 2026.</p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
<p id="status" class="note" hidden></p>
|
||||
<div id="kit" style="display:flex;flex-direction:column;gap:16px"></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/kitpage.js?v=3"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/wallet.js?v=3"></script>
|
||||
<script src="/assets/team.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
<section class="card"><h2>The service</h2><p>The site is provided as it is. We work to keep it running but cannot promise it will always be available or free of errors. The smart contract runs on Polygon on its own; its rules are public on the <a href="/contract">contract page</a>. We may change features, draft settings, the price of future positions or these terms; changes apply from the date they are posted here. As far as the law allows, our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.</p></section>
|
||||
<section class="card"><h2>Contact</h2><p>TrustClickz. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>. Last updated November 15, 2026.</p></section>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261117z"></script>
|
||||
<script src="/assets/common.js?v=20261119f"></script>
|
||||
<script src="/assets/misc.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -232,6 +232,15 @@ const server = http.createServer(async (req, res) => {
|
||||
{ const host = String(req.headers.host || '').toLowerCase().split(':')[0];
|
||||
if (C.isProd && host !== C.site && host.endsWith('.' + C.site)) { res.writeHead(301, { Location: 'https://' + C.site + req.url, 'Cache-Control': 'no-store' }); return res.end(); } }
|
||||
try {
|
||||
// a framed page's sign-in opens in a new tab as /sso/start?...&ref=<sponsor> (the frame dropped the fx.ref cookie, 2026-11-19):
|
||||
// keep the sponsor first-party here, then the normal start. Sign-in hand-offs are never shown in a frame.
|
||||
if (req.method === 'GET' && p === '/sso/start' && u.searchParams.has('ref')) {
|
||||
const ref = u.searchParams.get('ref'); u.searchParams.delete('ref');
|
||||
const h = { Location: p + u.search, 'Cache-Control': 'no-store', 'X-Frame-Options': 'DENY', 'Referrer-Policy': 'no-referrer' };
|
||||
if (NAME_RE.test(ref) || ADDR_RE.test(ref)) h['Set-Cookie'] = cookie('fx.ref', ref, 30 * 86400, false);
|
||||
res.writeHead(302, h); return res.end();
|
||||
}
|
||||
if (req.method === 'GET' && p.startsWith('/sso/')) res.setHeader('X-Frame-Options', 'DENY');
|
||||
if (req.method === 'GET' && await networksso.page(req, res, u)) return; // network hub: daily activity ping + the hub sign-in push (2026-11-15)
|
||||
if (req.method === 'GET' && (p.startsWith('/sso/') || p === '/api/sso/status') && await networksso.handle(req, res, u)) return;
|
||||
if ((p === '/api/promo-kit' || p === '/promote') && promokit.handle(req, res, u, sendFile)) return;
|
||||
|
||||
Reference in New Issue
Block a user