In December 2024, the tech YouTuber MegaLag ran a test any affiliate could replicate. He joined a VPN provider’s affiliate program, cleared his browser, and bought a subscription through his own affiliate link. He earned a $35.60 commission. Then he repeated the purchase with PayPal’s Honey extension installed. This time the commission went to Honey. What came back to him, shared through Honey’s rewards program, was $0.89.
Same product. Same shopper. Same affiliate link. The difference was a few lines of code running in the layer that sits under every affiliate link on the internet: the redirects, cookies, conversion signals, and credit windows that decide who gets paid. Most affiliate advice lives above that layer — niches, content, commission rates. The money lives inside it. So does the theft.
This is a field guide to that layer. It covers how a cloaked link actually works, why cloaking is legitimate link management rather than deception, how fraud exploits the same machinery, and what a technically sound affiliate setup looks like in 2026 — after Safari’s tracking caps, a rewritten Chrome extension policy, and three major networks sanctioning a company PayPal bought for $4 billion.
What actually happens when someone clicks your link
Strip away the dashboards and an affiliate link is a small distributed system. Four components do the work, in order, and each one can be configured well or badly.
The published link and its redirect. The raw link a network hands you is built for machines: a tracking domain, an affiliate ID, an offer ID, a tail of parameters. Cloaking wraps it in a branded path on your own domain — yoursite.com/go/tool — and your server answers each click with an HTTP redirect to the network, which forwards the visitor to the merchant. The status code you choose is not cosmetic. Under HTTP’s core specification, RFC 9110, a 301 (Moved Permanently) response is “heuristically cacheable”: a browser may store the mapping and replay it later without asking your server again. If you swap merchants next quarter — the whole point of owning a cloaked path — repeat visitors holding a cached 301 can sail straight to the old destination, and your click log never sees them. A 302 or 307 carries no such default caching, so every click re-resolves through your server. Use a temporary redirect, or a 301 with a short explicit max-age, and keep the chain short. Every hop adds latency, and every hop is a place where a parameter can get stripped.
The cookie drop. At the redirect hop, the network’s tracking server records the click — your affiliate ID, a click ID, a timestamp, any SubIDs you attached — and sets a tracking cookie in the visitor’s browser. That cookie is the receipt. Where it is set matters more than it used to: a cookie written by the server in an HTTP response, on a domain the visitor actually lands on, survives browser restrictions that kill cookies written by JavaScript. More on that in the attribution section, because it is the difference between a window that exists on paper and one that exists in the browser.
The conversion signal. When the shopper buys, the merchant has to tell the network. The old way is a pixel: a snippet on the order-confirmation page that fires from the buyer’s browser. It works until an ad blocker, a script error, or a closed tab eats it. The sturdier way is a server-to-server postback. The merchant captures the click ID when the visitor lands, stores it with the customer or order record, and when a qualifying purchase happens, the merchant’s server sends the event — click ID, stable transaction ID, amount — directly to the network’s server. No browser involved at the moment of conversion, so blockers and privacy settings can’t intercept it. The stable transaction ID lets the network deduplicate retries and reverse commissions on refunds. One honest caveat: a postback delivers the signal reliably, but it cannot resurrect a click ID that was never captured or was deleted before checkout. Server-side delivery fixes the last mile, not the whole journey.
The credit window. The cookie starts a clock. If the purchase happens inside the window, you get credit; outside it, you don’t. Amazon runs one of the shortest clocks in the industry: a 24-hour session that closes early the moment the customer places an order or clicks another associate’s link, with an exception that keeps items added to the cart during the session commissionable if the order completes within 89 days. Awin describes 30 days as the industry standard, varying by program. The window is a contract term, and like any contract term, it should match the behavior it governs.

Cloaking is link management, not deception
The word “cloaking” carries a deservedly bad reputation in SEO, and the collision of terms confuses people. In Google’s spam policies, cloaking means showing different content to users and to search engines — a deception about what a page is. A branded affiliate redirect does nothing of the kind. Every visitor, human or crawler, who follows yoursite.com/go/tool ends up at the same merchant page. That is forwarding, not disguising.
The tooling makes the distinction explicit. ThirstyAffiliates, one of the most widely used affiliate link plugins, documents that its cloaking is a plain 301/302 redirect and that it deliberately refuses to support iframe masking — keeping your URL in the address bar while showing someone else’s page — because that violates Google’s guidelines and WordPress.org’s plugin terms. The legitimate version of cloaking is transparent by construction.
What does it buy you? Three things. A readable, branded URL that readers can sanity-check before clicking, instead of a parameter soup on an unfamiliar domain. Centralized control: when a merchant dies or a better program appears, you edit one destination and every published link across a thousand-page site follows — provided you heeded the caching warning above. And a click log of your own, independent of the network’s dashboard, which turns out to matter enormously when you start hunting fraud.
There are rules of the road, and they are not optional. Google asks that affiliate links be qualified with rel="sponsored" — whether created manually or dynamically — and has warned that unqualified affiliate links can draw manual actions. The FTC requires a clear and conspicuous disclosure of the affiliate relationship near the recommendation; its guidance is explicit that the bare phrase “affiliate link” is not adequate disclosure, because consumers may not understand it means the publisher gets paid. And individual programs set their own terms: Amazon restricts link cloaking, which is why plugins ship features like Smart Uncloaking that expose the raw Amazon link while keeping other programs cloaked. Read the program agreement before you wrap its links. Cloaking is legitimate; cloaking against a program’s rules is a breach.
The quiet superpower of the cloaking layer is the SubID — a pass-through label you append to each link so the network reports back which placement converted, not just which affiliate. Impact.com supports subId1 through subId3, each up to 255 alphanumeric characters, visible only to the partner, plus a SharedId the brand can see too. Awin offers clickref, which is visible to advertisers, and clickref2 through clickref6, which stay private. Amazon handles the same job with multiple tracking IDs. A consistent schema — site, post, placement — turns one blended conversion rate into a map of what actually earns. Two cautions: keep personal data out of these fields entirely, and remember which slots the merchant can read.
The same layer hides the theft
Here is the uncomfortable symmetry: everything that makes honest attribution possible makes fraud possible too. If a cookie can credit a sale to whoever caused the click, then anyone who can plant that cookie without causing a click can harvest sales they never earned. That is cookie stuffing, and the canonical prosecutions are two decades old and still instructive.
Shawn Hogan was eBay’s number-one affiliate out of roughly 26,000. Court documents cited in contemporaneous reporting showed he received about $28 million in commissions between 2005 and 2007 — a figure worth handling carefully, because it is commissions received, not an adjudicated fraud loss. eBay’s civil complaint alleged his traffic widget had stuffed more than 650,000 cookies onto the browsers of people who had never clicked an eBay ad. He pleaded guilty to wire fraud in December 2012 and was sentenced in May 2014 to five months in federal prison, a $25,000 fine, and three years of supervised release.
The second defendant supplies the cleaner numbers, because the Justice Department published them. Brian Dunning’s company, Kessler’s Flying Circus, received about $5.2 million in eBay commissions between May 2006 and June 2007. In his plea agreement, the parties stipulated that between $200,000 and $400,000 of that came from the stuffing scheme — free widgets that silently routed visitors’ browsers through eBay’s tracking server and dropped his affiliate cookie without any click, any ad, or any awareness. He pleaded guilty in April 2013 and drew fifteen months.
The most useful thing in the eBay record is not the sentence. It is the detection method. eBay’s complaint described a forensic signature: legitimately referred users made a high share of their purchases within the first hour of the cookie being set, because the cookie dropped at the same moment they saw content that persuaded them. Users “referred” by the stuffers converted at a nearly uniform rate across the entire life of the cookie — the pattern you get when cookies are planted on random people who happen to buy later. Two decades on, that time-since-click histogram remains the cheapest fraud test an advertiser can run on its own data.

The modern variant is subtler than a hidden iframe. In the Honey case, the allegation is not that cookies were stuffed on strangers, but that an installed extension overwrote a legitimate affiliate’s cookie at checkout — opening a hidden tab that re-routed the shopper through PayPal’s own affiliate ID, so last-click attribution paid Honey for a sale a creator had generated. Allegedly this happened even when Honey found no coupon: the shopper got nothing, the creator lost the commission, and PayPal collected.
What turned the controversy into an industry event was the December 2025 follow-up investigation by MegaLag and the economist and attorney Ben Edelman, which described a “selective stand-down” system: rules refreshed hourly from a cloud server, profiling visitors for signs of being compliance testers — affiliate-network logins, particular cookies, email addresses containing “test” — and behaving politely for them while diverting commissions from ordinary shoppers. Stand-down rules exist precisely so extensions leave existing affiliate credit alone; a system that performs compliance only when watched is the opposite of that.
The enforcement was fast and public. Rakuten Advertising terminated Honey on January 12, 2026, cutting access to roughly 2,000 retail merchants. Impact.com suspended it on January 16, citing stand-down violations and concealment from testers. Awin confirmed publisher-policy breaches days later and suspended payments and access to new advertiser programs. In May 2026, Rakuten open-sourced a stand-down SDK for extensions, Honey implemented it, and Rakuten reinstated the partnership — a reminder that networks ultimately sell access, and remediation can be a commercial negotiation. Google had already moved at the platform level: a March 2025 Chrome Web Store policy, enforced from June 10, 2025, now requires extensions to disclose affiliate monetization before installation, to act only on explicit user action, and to deliver a direct benefit — no coupon found means no affiliate injection allowed.
The litigation is live but unresolved. The creators’ consolidated class action in the Northern District of California was dismissed in November 2025 with leave to amend; a 101-page amended complaint followed in January 2026; and on June 22, 2026, the court denied PayPal’s motion to dismiss in full, sending the case into discovery. As of this writing there is no liability finding and no certified class. PayPal disputes the allegations, saying the disputed code predates its $4 billion acquisition and that affected traffic was under 0.1% of Honey’s total. Third-party trackers estimate Honey’s Chrome user base fell from over 20 million before the exposé to roughly 12 million by August 2026, and its merchant roster from about 35,000 to 28,000. Capital One, facing a parallel creator suit over its own extension, agreed to settle in September 2025 without admitting liability. The reputational math ran ahead of the legal math — which is usually how attribution scandals end.

Getting attribution right
Fraud defense starts with a program whose honest attribution is correct, because you cannot spot anomalies against a baseline that is itself noise. Four decisions carry most of the weight.
Set the window to the sales cycle, then verify it against your data. Thirty days is a reasonable default for mid-priced e-commerce; high-consideration purchases — B2B software, expensive equipment — can justify 60 to 90 days or more, because a buyer who researches for six weeks is still the affiliate’s convert. But the right method is not picking a benchmark. Export last quarter’s affiliate orders, measure the gap between click and purchase, and set the window to cover the behavior you actually see. A window shorter than your cycle silently un-credits your best partners; a window far longer than your cycle pays commission on sales that habit, search, or another channel produced — and gives coupon interceptors more room to operate. Amazon’s 24-hour session is the aggressively short end of this spectrum, and it shapes partner behavior accordingly.
Respect the browser’s clock, which is shorter than yours. Safari has blocked third-party cookies by default since March 2020. WebKit’s tracking prevention goes further: cookies and other storage written by JavaScript are deleted after seven days of Safari use without interaction with the site, and JavaScript cookies set on a page reached through a tracking-parameter link from a classified domain are capped at 24 hours. Read that again next to your 30-day program window. The window is the maximum credit you promise; the browser decides how much of it physically exists. A shopper who clicks your link on an iPhone and returns eight days later to buy may be untracked regardless of what the contract says. The mitigations are structural: server-set first-party cookies, which are not subject to the seven-day script cap, and server-side conversion capture. This is the strongest practical argument for the S2S postback — not that pixels are obsolete, but that the identification step they depend on has a shrinking half-life.
Isolate the channel in your analytics. Give affiliate traffic its own UTM source per network, distinct from email and paid. If affiliate clicks arrive wearing the same utm_source as your newsletter, GA4 will happily blend them, and you will spend the next budget meeting arguing about numbers that were corrupted at the tagging layer. The network’s commission report and your analytics will never fully agree — different attribution models, different windows — but they should disagree in explainable ways. Unexplainable gaps are where stuffing hides.
Tag every placement. The SubID discipline from the cloaking section is an attribution control, not just a reporting nicety. When you can see conversion rates per placement, anomalies localize: one “partner” converting at forty times your site average on traffic your logs never saw is a finding, not a rounding error.

The detection layer
A program with clean plumbing still needs a watchman, because the fraud adapts — Honey’s stand-down rules reportedly refreshed hourly from a cloud server, which tells you the tempo of the opponent. Five checks, run quarterly, catch most of what matters.
First, the timing histogram. For each partner, plot conversions against time-since-click. Real referrals front-load; stuffed cookies flatline across the window. This is eBay’s test, it requires nothing but your own transaction data, and it is the single highest-signal check on this list.
Second, the redirect and device logs. Your cloaking layer logs every click; the network logs every conversion. Join them. Conversions with no matching click, unexpected hops in the redirect chain, or a systematic pattern of mobile clicks converting on desktop at checkout all deserve investigation — the last pattern is the signature of an extension waiting at the register.
Third, scrutinize coupon and extension partners structurally, not emotionally. They are not all fraud; cashback and coupon sites can deliver real value. But they occupy the last click by design, so require proof of incrementality: what share of their conversions involved a shopper who had no prior affiliate touch? Compare each partner’s share of discovery touches against its share of last clicks. A partner that closes everything and opens nothing is intercepting, and your contract should say what happens then — stand-down clauses, soft-click credit that expires at session end, or commission tiers that pay interceptors less than introducers. The networks now sell versions of this protection; verify yours is switched on.
Fourth, watch for the poaching red flags in combination: last-click dominance plus no discovery presence plus conversions your click log never saw. Any one alone can be innocent. All three together is a case file.
Fifth, audit on a calendar, not on a hunch. Re-run the histograms, re-read the network’s policy updates, re-test your own links in a clean browser with and without common extensions installed — MegaLag’s whole method was a controlled purchase test, and any advertiser can run one.
One discipline note on numbers. You will see confident claims that cookie stuffing consumes 10 to 50 percent of affiliate budgets, or constitutes 60 percent of affiliate fraud. Trace them and they lead back to anti-fraud vendors’ own client studies, often years old, with no independent replication. They may be directionally right; they are not audited facts, and this guide deliberately does not repeat them as statistics. The numbers you can defend are the court records: $5.2 million in commissions, $200,000 to $400,000 stipulated as fraudulent, 650,000 planted cookies, two prison sentences. Fraud does not need an industry-wide percentage to be worth your quarterly audit. It needs one unguarded program.
The bottom line
The technical layer under an affiliate link is not plumbing you install once and forget. It is the place where value gets attributed and where theft gets hidden, using the same redirects, the same cookies, the same windows. Cloaking — the honest kind, a branded temporary redirect with a sponsored tag and a disclosure — is how you take ownership of your side of that layer. Server-set cookies and postbacks are how you keep the attribution true as browsers tighten. And the detection layer is how you make sure the commission you pay bought demand, not proximity to a checkout button. Get those three right and the stack works for you. Leave them unexamined and, as several thousand creators discovered in December 2024, the stack works for whoever is watching it more closely than you are.