URL cloaking explained: redirects, frames and the kind that gets banned

URL cloaking covers 3 practices: branded redirects, frame masking and content cloaking. See which are safe and what Google Ads and Amazon Associates ban.

Muzahid Maruf — Founder of TrackRev.io

Muzahid MarufUpdated

Link tracking · 9 min read
On this page
  1. 01The three kinds of URL cloaking
  2. 02How a redirect cloak works
  3. 03Why people cloak affiliate links
  4. 04Frame-based URL masking and where it breaks
  5. 05Content cloaking under Google Search and Google Ads policy
  6. 06What Amazon Associates and other programs allow
  7. 07Affiliate de-cloaking: how to see where a link goes
  8. 08Disclosure and link attributes still apply
  9. 09Link cloaker tools compared
  10. 10Moving cloaked links off Pretty Links
  11. 11Cloaked links that count revenue in TrackRev

Explore with AI

Opens this article inside the chosen assistant with a ready-made prompt.

URL cloaking is any technique that shows a visitor a different address than the one that loads, and the phrase covers 3 practices with 3 verdicts.

A redirect from yourbrand.com/go/tool (21 characters) to a 76-character affiliate URL is what plugins such as Pretty Links sell, and each program sets its own rules for it. A registrar's frame masking fails on pages that refuse framing.

Showing Googlebot or an ad reviewer a different page than visitors get is what Google Search and Google Ads ban, and Google Ads suspends accounts for it without prior warning.

My rule is a plain redirect on a domain you own, the program's terms read first and a disclosure beside the link. Amazon Associates is where that matters most.

Key takeaways

  • URL cloaking covers 3 practices: a redirect on your own domain, frame masking at a registrar and content cloaking. Only content cloaking is spam under Google Search policy.
  • Amazon Associates sections 6(v), 6(w) and 2(e) restrict cloaking, shorteners that hide Amazon and Redirecting Links, so use direct tagged links there and read each other program's terms.
  • Send a 302 or 307. RFC 9110 lets caches keep a 301 or 308, so an edited destination may never reach a returning visitor.
  • Google Ads suspends accounts for cloaking without prior warning, and 16 CFR 255.5 requires the affiliate disclosure to be clear and conspicuous.

The three kinds of URL cloaking

Affiliate marketers mean row 1. Namecheap uses "URL cloaking" as another name for the frame feature in row 2. Google means row 3.

KindWhat the visitor seesHow it worksVerdict
1. Redirect cloakyourbrand.com/go/tool, then the partner's pageHTTP 302 or 307 from your own domainEach program sets its own rule. Amazon Associates restricts it.
2. Frame maskingYour address in the bar with another site inside itThe registrar's server wraps the target page in an HTML frameFails on pages that forbid framing with X-Frame-Options or frame-ancestors
3. Content cloakingA clean page for crawlers and a different one for peopleThe server branches on user agent or IP addressSpam under Google Search policy, egregious under Google Ads policy

Sources: Google Search spam policies (updated August 28, 2026), the Google Ads circumventing systems policy and Namecheap's article on domain redirect types.

How a redirect cloak works

The visitor requests /go/tool, the server answers 302 with a Location header, and the browser loads that address. Nothing stays secret, since the destination travels in plain view to every client.

What the server sends back (curl, illustrative)
$ curl -sI https://yourbrand.com/go/tool
HTTP/2 302
location: https://partner.example/signup?aff_id=48213&sub=blogpost&utm_campaign=review

Use 302 or 307 for a cloak. A cached 301 or 308 can let a returning visitor's browser skip your server and keep going to the old destination after you edit it.

Pretty Links offers 301, 302 and 307 per link, and TrackRev sends a 302. The branded short link post covers how Google reads each code.

CodeRFC 9110 sectionHeuristically cacheableUse for a cloak
30115.4.2YesNo, a cached copy can skip your server
30215.4.3NoYes
30715.4.8NoYes
30815.4.9YesNo, same reason as 301

RFC 9110 (June 2022), section 15.1 lists the heuristically cacheable codes.

Editing in 1 place and shorter links are the strong reasons for affiliate link cloaking, and hiding the ID is the weak one. Pretty Links pitches the single edit on its WordPress.org listing and hijack protection on its cloaking page.

ReasonWorked exampleLimit
Edit a destination once120 posts link to a host that changes its tracking URL: 120 edits at 2 minutes is 4 hours, against 1 edit at the redirectNeeds a 302 or 307
Shorter links21 characters instead of 76, a 72% cutStill needs a disclosure
ID out of the URLaff_id=48213 leaves the address bar and copied linksStill readable in the Location header
A click count you ownYour server logs every request to /go/toolCounts bots too, so filter them

Frame-based URL masking and where it breaks

Namecheap defines URL Frame as a redirect type also called URL masking or URL cloaking: its server shows the target page inside a frame and the address bar keeps your domain.

It lists 2 drawbacks, duplicate content in search engines and sites that refuse masking.

A page that sends X-Frame-Options with the value DENY or SAMEORIGIN, or a CSP frame-ancestors directive that leaves out your domain, refuses to render inside your frame, and MDN says sites use these against clickjacking. I use a redirect instead.

Content cloaking under Google Search and Google Ads policy

Google Search lists moving a site, merging pages and redirecting logged-in users as legitimate redirects. Google Ads allows click trackers and redirects unless they hide something.

RulePolicyWhat it coversConsequence
CloakingGoogle SearchDifferent content for users and search enginesMay rank lower or not appear
Sneaky redirectsGoogle SearchNormal desktop pages and a spam domain for mobile usersMay rank lower or not appear
CloakingGoogle AdsDifferent content for Google or reviewers than for peopleSuspended on detection, no prior warning
Section 6(v)Amazon Associates Participation RequirementsObscuring the URL of your site that carries Special Links, including through Redirecting Links, so Amazon cannot tell where a click came fromMaterial breach of the Operating Agreement
Section 6(w)Amazon Associates Participation RequirementsA link shortening service used in a way that makes it unclear you are linking to AmazonMaterial breach of the Operating Agreement
Section 2(e)Amazon Associates Commission Income StatementPurchases through a Redirecting Link, which sends users via an intermediate site with no click or other action on itCommission disqualified

From the Google Search spam policies, the Google Ads circumventing systems policy and the Amazon Associates Program Policies (updated April 14, 2026).

Device splits such as App Store versus Google Play show the same app to everyone, so I read them as outside the ban. That is my reading of the policy. Device-targeting redirects covers the setup.

What Amazon Associates and other programs allow

Whether a plain redirect on your own domain breaks any Amazon Associates clause is Amazon's call.

ThirstyAffiliates ships Smart Uncloaking for Amazon Associates compatibility, and its pricing page says it keeps Amazon links compliant with Amazon's terms while other programs stay cloaked.

Use the direct tagged links Amazon's tools generate, since the Operating Agreement (updated October 15, 2025) requires Special Links to use its tagged formats.

Of the affiliate programs, I checked only Amazon's wording, so search any other publisher agreement for cloak, mask and redirect.

Affiliate de-cloaking can mean 2 things: switching a cloak off for a program that forbids it, as Smart Uncloaking does for Amazon Associates, and reading the destination behind a cloak.

A redirect cloak is a header, so any client can read it.

Read a cloak's destination without following it
$ curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://yourbrand.com/go/tool
302 https://partner.example/signup?aff_id=48213&sub=blogpost&utm_campaign=review

The curl manual documents redirect_url, and curl -sIL prints every hop's headers instead. Google Chrome (Preserve log) and Mozilla Firefox (Persist Logs) show the chain on the Network tab.

A check may register as a click, so run it on your own links after each destination change and confirm the status is 302.

A cloak hides the affiliate parameters, so the disclosure carries the whole job.

16 CFR 255.5 requires an unexpected material connection to be disclosed clearly and conspicuously, and the FTC's guide for social media influencers says to place it with the endorsement, rather than burying it on a profile page or in a hashtag group.

See the affiliate compliance post for FTC and GDPR rules.

A cloaked link also looks like an internal link to a crawler until it follows the redirect, so mark it in your page.

Google's September 10, 2019 announcement added rel="sponsored" for links created as part of advertisements, sponsorships or other compensation agreements, and an affiliate commission fits that description.

ToolWhere it runsRedirect typesPriceWorth knowing
Pretty LinksWordPress 6.0+ plugin, 200,000+ active installs301, 302 and 307 free. Pro adds 4: Cloaked, JavaScript, Meta-Refresh and Tracking Pixel.Free core. Pro from $99.60 a year for 1 site, $149.60 for 2, $199.60 for 5.Higher Pro tiers list QR codes and geographic redirects, with UTM Builder and Splash Pages as add-ons.
ThirstyAffiliatesWordPress 6.0+ plugin, 30,000+ active installsServer-side or JavaScriptFree core. Paid $99.60 a year for 1 site, $149.60 for 5, $199.60 for 10.Smart Uncloaking for Amazon Associates and a 14-day refund guarantee.
TrackRevHosted, on a subdomain you own through 1 CNAME record302Free: 50 links and 1,000 tracked events a month. Paid from $39 a month.Joins each link's clicks to Stripe, Paddle, Polar or Lemon Squeezy revenue on paid plans.

Prices from each vendor's pricing page, October 2026. Pretty Links and ThirstyAffiliates show those prices as discounts from list prices of $249, $374 and $499. See the Pretty Links plans page.

Pick a plugin when your whole site runs on WordPress and you earn from Amazon Associates and a few networks, since $99.60 a year costs less than Starter at $39 a month.

Pick a hosted tool when the redirect has to count revenue, or when partners other than you share the links.

  • Step 1: export from Pretty Links at Dashboard, Pretty Links, Options, Tools, Export Links to CSV, which the free version (4.0.15 at the time of writing) includes. The file has 16 columns, including slug, url, redirect_type and clicks (Pretty Links CSV docs).
  • Step 2: add a channel to each row. TrackRev's import needs a destination URL and a channel per row, keeps your slugs exactly, flags duplicate slugs before creating anything and takes 500 rows per upload.
  • Step 3: point a CNAME for a subdomain such as go.yourbrand.com at cname.trackrev.io, verify it and import the CSV.
  • Step 4: a subdomain cannot take over a path on your main domain, and published links point at yourbrand.com/go/slug. Leave the plugin active while they still get traffic, or add a server rule that redirects /go/* to the subdomain, and compare click counts for 7 days before removing it.
  • Step 5: use the new links in new content and check each with the curl command above.

TrackRev serves links from a subdomain you own through 1 CNAME record and an automatic certificate, and the custom tracking domain page puts setup at about 5 minutes.

Each click hits a server-side redirect that logs country, device and referrer, flags bots and answers 302. Bulk link import handles the CSV above.

On paid plans from $39 a month, the click log joins Stripe, Paddle, Polar and Lemon Squeezy payments, and link tracking shows the revenue each link earned.

The free plan has 50 links and 1,000 tracked events a month and hides revenue. Partner links in an affiliate program, a paid-plan feature, use your branded domain by default.

TrackRev's acceptable-use terms bar cloaking a destination with intent to deceive. Plans and limits are on the pricing page.

Found this useful? Share it.

PostLinkedIn

Frequently asked questions

Muzahid Maruf — Founder of TrackRev.io

Written by

Muzahid Maruf

Founder, TrackRev.io & Contant.io

Muzahid Maruf is the founder of TrackRev.io and Contant.io. He writes about marketing attribution, link tracking, and revenue analytics for SaaS teams.

Writes about Marketing attribution · Link tracking · Revenue analytics · SaaS growth

Stop guessing where your revenue comes from.

Set up TrackRev in about five minutes. The free plan covers 1,000 events a month, no card needed.

Start free