Short answer: on the first night of my Black Friday sale, Stripe showed 32 checkouts. 27 of them were bots: link previews and crawlers from TikTok, Meta and chat apps, plus email scanners, all following the Get Pro link in the page's code. Real people had clicked Get Pro about 4 times. A small check on the server now sends anything that isn't a person's browser back to the page before Stripe is called. And of the 8 Pro checkouts paid in the sale's first days, 0 came from my ads: 6 started inside the app.
(I build Morphy, a desktop app for running AI coding agents side by side. This is from its build log.)
How it showed up
On November 25 I launched a Black Friday deal for Morphy Pro: 30% off, for life, on its own page. TikTok ads started at 18:00, and an email went out at midnight. To keep it simple for people on their phones, Get Pro went straight to Stripe's checkout, with no sign-in first.
Two numbers didn't match. The page's own counter, which only counts real clicks on its buttons, showed 0 Get Pro clicks at 21:08. A few hours later, Stripe had 32 Black Friday checkouts.
At first that looked like interest. Then my agent looked closer. 27 of the 32 had no ad tag and no click from the page behind them. It corrected its update on Discord: real Get Pro clicks were about 4, three from TikTok ads and one from the email. The rest were machines.

Who opens a checkout link that isn't a person
A lot of software opens links without anyone clicking:
- Link previews. When a link is shared in WhatsApp, Discord, Slack, Telegram or LinkedIn, their servers fetch it to draw a preview card.
- Ad platforms' crawlers. TikTok's (Bytespider, TikTokSpider) and Meta's (facebookexternalhit, meta-externalagent) visit the pages your ads point to, and follow the links on them.
- Search engines and helpers, like Googlebot and Google-Read-Aloud.
- Email scanners. Many inboxes open every link in a new email first, to check it's safe.
- Prefetching and scripts. Browsers that load a page early, headless browsers,
curl.
On a normal page, none of this matters. But my Get Pro button was a plain link to /api/pro/checkout, and opening that address creates a real Stripe Checkout Session. So every crawler that followed the link made one. Stripe counted each as a checkout, and my funnel counted each as interest.
The email scanners had a second effect. An abandoned checkout sends a "checkout still open" email. A scanner opening the link in my Black Friday email could start a checkout the reader never saw, and then send them a reminder about it.
The fix: ask who's asking
A chat wrote a small check, lib/visitor.js, in the same night. It only reads the request's headers and keeps nothing. Trimmed, it looks like this:
// Who's asking: a person's browser, or a link preview, crawler, scanner,
// prefetch or script. Only headers are read; nothing is kept.
const BOT_AGENT = /(?<!cu)bot\b|spider|crawl|facebookexternalhit|meta-external|whatsapp\/|preview|headless|curl\/|python|playwright/i; // trimmed: the real list is longer
const PREFETCH = /prefetch|prerender|preview/i;
const header = (req, name) => String(req?.headers?.[name] || '');
const methodOf = (req) => String(req?.method || 'GET').toUpperCase();
function notABot(req) {
const agent = header(req, 'user-agent');
const method = methodOf(req);
return !!agent && !BOT_AGENT.test(agent) && method !== 'HEAD' && method !== 'OPTIONS';
}
function browserVisit(req) {
if (!notABot(req) || methodOf(req) !== 'GET') return false;
if (!/text\/html|application\/xhtml\+xml/i.test(header(req, 'accept'))) return false;
if (['purpose', 'sec-purpose', 'x-purpose', 'x-moz'].some((name) => PREFETCH.test(header(req, name)))) return false;
const mode = header(req, 'sec-fetch-mode');
return !mode || mode === 'navigate';
}
At the top of the checkout route, before any call to Stripe (simplified):
if (!browserVisit(req)) return redirect(res, `${site}/blackfriday?ref=${adRef}`);
In plain words, a request only reaches Stripe when:
- its user agent doesn't name a bot or a script,
- it's a GET that asks for a web page, not a HEAD request or a fetch for data,
- it isn't a prefetch or a preview, going by the headers browsers send for those,
- and, when the browser says so, it's a real navigation: someone opening the page.
Anything else gets a redirect back to the Black Friday page, with its ad tag kept. No session is made, and nothing is counted.

The in-app browsers still get through. That matters: people who tap a TikTok ad or an Instagram story land in those apps' own browsers. Those are people, and their user agents name the app (musical_ly, BytedanceWebview, Instagram, FBAN), never a bot. The tests cover people, bots and each signal, and the whole server suite passed: 767 tests, 0 failing. It went live at 01:22 on November 26, together with three other checkout fixes.
The same notABot check now also guards the form that hands out personal promo codes and the page's own counters. One extra rule came the next day: a visitor can ask for at most 5 codes an hour.
After the fix: is the checkout even working?
With the bots gone, the honest number was clear: real people were reaching the checkout, and nobody was paying. So the next question was whether the checkout worked at all.
A chat tested it on the live page, on a phone and on a desktop. The 30% discount was applied, and card, PayPal, Klarna and Satispay were offered. All 29 Stripe webhook events from the past 48 hours had been delivered. It also ran the whole pay-first flow in Stripe's test mode. Everything worked. Even its own test browser got sent back at first: the guard wanted a real browser's request.
By that afternoon, 39 Black Friday checkouts had been opened since launch, and none were paid. Most of the untagged ones dated from before the fix.
Where the real sales came from
Most came on November 27, after I changed the deal: a short step where you leave your email and get a personal extra discount code, with the checkout inside the page. That day 7 Pro checkouts were paid, and 5 of them used a personal Black Friday code.
Stripe's ref tags show where each one started. From the start of the ads on November 25 to the night of the 27th:
| Where the paid checkout started | Paid |
|---|---|
| Morphy's onboarding: the plan step at first start | 4 |
| The plan card in the app | 2 |
| The code email | 1 |
| The Black Friday page, with no ad tag | 1 |
| A TikTok ad | 0 |
So 6 of the 8 started inside Morphy. 3 checkouts did carry a TikTok tag, and all 3 expired unpaid. My agent added one fair caveat: some buyers may have seen an ad earlier and come back later, which no tag can show. That's possible. But the clicks I paid for didn't buy, and people who had installed Morphy did.
(The ads themselves, with every number: TikTok ads: 4,726 clicks, 0 tracked sales.)
If you sell with Stripe Checkout links
What I'd tell myself before launch day:
- A link that creates a payment session will be opened by machines. Link previews, ad crawlers and email scanners follow every link on a page and in an email.
- Count clicks where people click. My page's own counter was right all along. Stripe's list of sessions wasn't wrong either, but it counted something else.
- Check the request before you call Stripe: user agent, method,
Accept, the prefetch headers andSec-Fetch-Mode. Send the rest back to the page. - Let the in-app browsers through. That's where phone traffic from ads opens.
- Tag every checkout with where it came from. The tags are what showed that my sales came from inside the app, not from ads.
Questions
Can a link preview create a Stripe Checkout Session? Yes, if opening the link creates the session. A preview bot fetches the address like a browser would, so your server makes a session for it. Check who's asking before you call Stripe.
Will blocking bots also block TikTok's or Instagram's in-app browser?
Not if you check the user agent for bot words. The in-app browsers name the app (musical_ly, BytedanceWebview, Instagram, FBAN) and a normal browser, never a bot.
Why do email scanners open my links? Many inboxes open every link in a new email first, to check it's safe. If that link starts a checkout, the reader gets a "checkout still open" email for a checkout they never opened.
How do I tell real checkouts from bots? Compare two counts: clicks your page sees, and sessions Stripe has. A big gap is bots. A tag on every checkout (the ad or link it came from) tells you the rest.


