Affiliate links are often long and ugly: a network domain followed by a string of IDs and parameters. Link cloaking replaces that with a short, branded address such as yoursite.com/go/toolname that redirects to the real affiliate link. It is one of the most common practices in affiliate marketing, and also one of the most misunderstood, because the word "cloaking" means something very different in SEO.
This guide explains what affiliate link cloaking is, how it works, why affiliates use it, when programs allow it and when they do not, and how to set it up without creating SEO or trust problems.
What Is Affiliate Link Cloaking?
Affiliate link cloaking is the practice of sending visitors to your affiliate link through a redirect on a URL you control. The visitor clicks the short link, your server or tool immediately forwards them to the affiliate link, the network records your affiliate ID and the visitor lands on the merchant's page.
A clearer name for most of it is link redirection or link shortening. The visitor still ends up on the merchant's real site, with the merchant's real address in the browser bar. Nothing about the destination is hidden once they arrive.
Affiliate Cloaking Is Not SEO Cloaking
In search engine terms, cloaking means showing search engine crawlers different content from what human visitors see, in order to manipulate rankings. Google treats that as a spam violation. It is unrelated to redirecting an affiliate link.
| Affiliate Link Cloaking | SEO Cloaking | |
|---|---|---|
| What it does | Redirects a clean link to an affiliate URL | Shows crawlers different content from visitors |
| Who sees what | Everyone reaches the same destination | Crawlers and people see different pages |
| Search engine view | Not a cloaking violation by itself | Violates Google's spam policies |
| Main risk | Breaking a specific program's rules | Ranking penalties or removal |
A third practice, sometimes called offer cloaking or ad cloaking, shows ad reviewers a harmless page while sending real visitors to a different, often prohibited, offer. That is deceptive, breaks every major ad platform's policies and is not what this guide is about.
How Cloaked Links Work
- You create a short link, such as
yoursite.com/go/clickmagick, in a plugin, link tracker or server rule. - A visitor clicks it.
- Your server responds with a redirect, usually a 301, 302 or 307 status code, pointing to the full affiliate link.
- The browser follows the redirect to the network, which records the click and your ID.
- The visitor lands on the merchant's page.
Some tools record the click before redirecting, which gives you a basic click count per link. A temporary redirect (302 or 307) is common for affiliate links because you may change the destination later.
A riskier variation keeps your domain in the address bar by loading the merchant's page inside a frame. Many merchants forbid this, and it can break checkouts and security features. Avoid frame-based cloaking.
Why Affiliates Cloak Links

- Cleaner, more trustworthy links. A short link on your own domain looks tidier in content, emails, videos and podcasts.
- Easy updates. If a program changes its link format or you switch programs, you update one redirect instead of editing every page and email.
- Click tracking. Many cloaking tools count clicks per link, and some add sub-IDs automatically.
- Memorable links. A link you can say out loud on a podcast or video is easier to remember.
- Some protection against tampering. A visible affiliate ID can be removed or replaced by a visitor or by some browser extensions. A redirect makes that harder, though it is not a complete safeguard.
- Email deliverability. Some email marketers prefer links on their own domain rather than a shared network domain. Results vary, so test with your own list. See our guide to affiliate links in emails.
When Link Cloaking Is Not Allowed
Whether you can cloak a link depends entirely on the program. There is no single rule.
- Program terms that prohibit redirects or masking. Amazon Associates is the best-known example: its rules restrict links that hide or disguise that the link goes to Amazon, which is why many link tools recommend leaving Amazon links uncloaked.
- Rules about where links may appear. Some programs ban using their links in paid ads, on coupon sites or in spam. ClickMagick's referral agreement, for example, prohibits promotion through PPC ads and coupon sites. Cloaking a link does not make those uses allowed.
- Frame-based cloaking. Keeping your URL in the address bar after the merchant's page loads is widely prohibited.
- Bypassing a platform's link rules. Using a redirect to post a link where a social network or ad platform does not permit it can get your account restricted.
Before cloaking, read the affiliate agreement for words such as "redirect", "mask", "cloak", "shorten" and "frame". If the agreement is unclear, ask the affiliate manager in writing.
Cloaking and Disclosure
A cloaked link is still an affiliate link. In the United States, the FTC expects a clear and conspicuous disclosure when you have a financial relationship with a brand you recommend, and similar rules apply in the UK, EU and elsewhere. Disclose the relationship whether the link is short, long, cloaked or plain. Cloaking should make a link cleaner, not hide that it earns you money.
Put the disclosure where readers will see it before they click, in plain language, such as a note that you may earn a commission if they buy through your link.
Cloaking and SEO
Redirecting an affiliate link through your own domain is not, by itself, an SEO problem. Two practical points matter more:
- Link attributes. Google asks site owners to mark paid and affiliate links with rel="sponsored" (rel="nofollow" is also accepted). Add the attribute to the link on your page, whether it points to a cloaked URL or directly to the merchant.
- Crawling the redirect folder. Some site owners block their redirect folder, such as /go/, in robots.txt so search engines do not crawl hundreds of redirects. This is a housekeeping choice, not a requirement.
Cloaking does not improve rankings either. Its benefits are tidiness, tracking and maintenance.
How to Cloak Affiliate Links
| Method | Best For | Notes |
|---|---|---|
| WordPress link plugin | WordPress sites | Plugins such as Pretty Links and ThirstyAffiliates create /go/ style redirects with click counts |
| Link tracker | Affiliates running traffic from many sources | Tools such as ClickMagick create branded tracking links on your own domain plus conversion tracking |
| Server redirect rules | Static sites and developers | A redirects file or server config maps short paths to affiliate links |
| URL shortener with a custom domain | Social media and podcasts | Use a branded domain rather than a generic shortener, which some platforms and spam filters distrust |
Whatever you use, keep the redirect fast and keep a list of every short link and its destination.
Best Practices

- Read the program terms first. Leave links uncloaked where redirects are prohibited.
- Use a consistent folder, such as /go/ or /recommends/, so links are recognizable.
- Use descriptive slugs.
/go/awebertells visitors where they are going; a random code does not. - Add rel="sponsored" to affiliate links on your pages.
- Disclose clearly near the links.
- Test after setup to confirm the redirect keeps your affiliate ID and any sub-IDs.
- Audit regularly. Programs close and links break; a monthly check catches dead redirects.
- Pass sub-IDs through. Make sure your cloaking tool forwards tracking parameters so you can still see which placement converted. See affiliate link tracking explained.
Cloaked Links in Email and Social Media
Email is where branded links are most useful. A link on your own domain looks consistent with the rest of your message, and you can change the destination even after the email is sent. Some email providers have rules on affiliate content, so check your provider's acceptable use policy before promoting offers. Our guide to email deliverability covers the wider picture.
On social platforms, policies change often. Some limit links in posts or treat certain redirects as suspicious. A branded domain you own is usually safer than a generic shortener, but follow each platform's current rules rather than using redirects to get around them.
Branded Tracking Links on Your Own Domain
ClickMagick creates tracking links on your own first-party domain and records clicks and conversions by source. Start with a 14-day free trial.
Should You Cloak Your Affiliate Links?
For most affiliates the answer is yes, with exceptions. Use branded redirects for programs that allow them, especially in emails, videos and podcasts where clean links matter most. Leave links uncloaked where the program prohibits redirects or masking, and always disclose. If you also want to know which links convert, choose a tool that combines redirects with tracking, or pair your redirects with sub-IDs.
Frequently Asked Questions
Is Affiliate Link Cloaking Legal?
Redirecting a link through your own domain is generally legal. The legal requirement to watch is disclosure: you must still tell readers you may earn a commission. Program terms are a separate matter and can prohibit cloaking.
Does Google Penalize Cloaked Affiliate Links?
Google's cloaking policy targets showing crawlers different content from visitors, not redirecting affiliate links. Mark affiliate links with rel="sponsored" or rel="nofollow".
Can I Cloak Amazon Affiliate Links?
Amazon's rules restrict links that disguise that they go to Amazon. Most link tool makers advise leaving Amazon links uncloaked. Check the current Amazon Associates agreement before doing anything else.
Does Cloaking Stop Commission Theft?
It makes casual tampering harder because your affiliate ID is not visible in the link, but it is not a guarantee. The ID is still present after the redirect.
What Is the Best Redirect Type for Affiliate Links?
Many tools use a temporary redirect (302 or 307) because affiliate destinations change. Some use 301. The most important thing is that the redirect keeps your affiliate ID and sub-IDs intact.