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, FounderUpdated
On this page
- 01The three kinds of URL cloaking
- 02How a redirect cloak works
- 03Why people cloak affiliate links
- 04Frame-based URL masking and where it breaks
- 05Content cloaking under Google Search and Google Ads policy
- 06What Amazon Associates and other programs allow
- 07Affiliate de-cloaking: how to see where a link goes
- 08Disclosure and link attributes still apply
- 09Link cloaker tools compared
- 10Moving cloaked links off Pretty Links
- 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.
| Kind | What the visitor sees | How it works | Verdict |
|---|---|---|---|
| 1. Redirect cloak | yourbrand.com/go/tool, then the partner's page | HTTP 302 or 307 from your own domain | Each program sets its own rule. Amazon Associates restricts it. |
| 2. Frame masking | Your address in the bar with another site inside it | The registrar's server wraps the target page in an HTML frame | Fails on pages that forbid framing with X-Frame-Options or frame-ancestors |
| 3. Content cloaking | A clean page for crawlers and a different one for people | The server branches on user agent or IP address | Spam 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.
$ curl -sI https://yourbrand.com/go/tool
HTTP/2 302
location: https://partner.example/signup?aff_id=48213&sub=blogpost&utm_campaign=reviewUse 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.
| Code | RFC 9110 section | Heuristically cacheable | Use for a cloak |
|---|---|---|---|
| 301 | 15.4.2 | Yes | No, a cached copy can skip your server |
| 302 | 15.4.3 | No | Yes |
| 307 | 15.4.8 | No | Yes |
| 308 | 15.4.9 | Yes | No, same reason as 301 |
RFC 9110 (June 2022), section 15.1 lists the heuristically cacheable codes.
Why people cloak affiliate links
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.
| Reason | Worked example | Limit |
|---|---|---|
| Edit a destination once | 120 posts link to a host that changes its tracking URL: 120 edits at 2 minutes is 4 hours, against 1 edit at the redirect | Needs a 302 or 307 |
| Shorter links | 21 characters instead of 76, a 72% cut | Still needs a disclosure |
| ID out of the URL | aff_id=48213 leaves the address bar and copied links | Still readable in the Location header |
| A click count you own | Your server logs every request to /go/tool | Counts 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.
| Rule | Policy | What it covers | Consequence |
|---|---|---|---|
| Cloaking | Google Search | Different content for users and search engines | May rank lower or not appear |
| Sneaky redirects | Google Search | Normal desktop pages and a spam domain for mobile users | May rank lower or not appear |
| Cloaking | Google Ads | Different content for Google or reviewers than for people | Suspended on detection, no prior warning |
| Section 6(v) | Amazon Associates Participation Requirements | Obscuring the URL of your site that carries Special Links, including through Redirecting Links, so Amazon cannot tell where a click came from | Material breach of the Operating Agreement |
| Section 6(w) | Amazon Associates Participation Requirements | A link shortening service used in a way that makes it unclear you are linking to Amazon | Material breach of the Operating Agreement |
| Section 2(e) | Amazon Associates Commission Income Statement | Purchases through a Redirecting Link, which sends users via an intermediate site with no click or other action on it | Commission 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: how to see where a link goes
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.
$ 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=reviewThe 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.
Disclosure and link attributes still apply
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.
Link cloaker tools compared
| Tool | Where it runs | Redirect types | Price | Worth knowing |
|---|---|---|---|---|
| Pretty Links | WordPress 6.0+ plugin, 200,000+ active installs | 301, 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. |
| ThirstyAffiliates | WordPress 6.0+ plugin, 30,000+ active installs | Server-side or JavaScript | Free 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. |
| TrackRev | Hosted, on a subdomain you own through 1 CNAME record | 302 | Free: 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.
Moving cloaked links off Pretty 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.
Cloaked links that count revenue in TrackRev
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.
Frequently asked questions
- Sometimes. Namecheap uses both names for 1 frame feature, while affiliate tools call a branded redirect a cloak. Ask a vendor which one it means before you compare 2 products.
- I found no rule against a plain redirect on your own domain. The obligations attached to it are 16 CFR 255.5 on disclosure and each affiliate program's contract. Ask a lawyer about your own case.
- Google Search asks whether a redirect is meant to deceive users or search engines, and a plain redirect that sends everyone to the same page is not. The bigger risk to an affiliate site is thin affiliation, meaning copied merchant descriptions with no original value.
- Treat it as not allowed unless Amazon confirms otherwise in writing, and use the direct tagged link.
- They run the same redirect. A shortener shortens the address, and a cloaker hides long affiliate parameters, usually on your own domain. Amazon Associates Section 6(w) targets shorteners that hide an Amazon destination.
- I found no independent data for affiliate links. The branded short link post covers a vendor survey on branded domains that states how it was run.

Written by
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