Blogging & content · Guide
Should You Cloak Affiliate Links? Rules and Setup
Short answer
Cloak an affiliate link only when the short link still makes the destination clear and the full affiliate link, with its tracking ID, reaches the retailer unchanged. Use a 307 redirect when the destination may change and a 301 when it is permanent, and keep the FTC disclosure next to the link. Never cloak an Amazon link in a way that hides that it goes to Amazon, because Amazon's program rules forbid it.
Key takeaways
- Cloaking is a redirect on your own domain, not a way to hide a paid link.
- Use a 307 redirect when the destination may change, and a 301 only when it is permanent.
- Amazon bans cloaking that hides that a link goes to Amazon.
- A cloaked link still needs a clear FTC disclosure next to it.
- Mark cloaked affiliate links with rel=“sponsored” for Google.
What does cloaking an affiliate link mean?
Cloaking turns a long affiliate link into a short branded link on your own domain.
A raw affiliate link often looks like a retailer address followed by tracking codes and your affiliate ID. A cloaked link replaces it with something like yoursite.com/recommends/speaker, and your site redirects visitors to the full affiliate link when they click.
The redirect is the whole technique. Your site answers the short link with a redirect status, and the browser then loads the retailer page with your tracking intact.
Should you cloak affiliate links at all?
Yes, when the short link stays honest about where it goes, and no, when it hides the destination from readers or the retailer.
Cloaking helps when links are long, hard to say out loud, or likely to change. You can update the destination once in your dashboard instead of editing every post that uses the link, and the short link looks cleaner in print, video, and social posts.
Cloaking hurts when it hides the paid connection or the retailer. A reader should still know the link is an affiliate link before clicking, and the retailer should still receive its full tracking. If either side cannot see what is happening, the setup is wrong.
The question is not whether cloaking is allowed in general. The question is whether your setup keeps the destination visible and the tracking intact.
What rules apply to cloaked links?
Three sets of rules apply, and a cloaked link must satisfy all three at once.
First, the FTC still wants a disclosure. The FTC's Endorsement Guides FAQ says the disclosure must be clear and conspicuous and close to the recommendation, and that rule does not change when a link is shortened. A cloaked link with no disclosure fails the same test as a raw link.
Second, Amazon bans cloaking that hides its site. Amazon's rules state that you must not use a shortener or redirect in a way that makes it unclear you are linking to an Amazon site, and you must not cloak, hide, or spoof the URL of your site containing Amazon links.
A redirect that keeps the Amazon destination clear and the tracking ID intact is a different case from one that hides either.
Third, Google wants affiliate links marked. Google Search Central asks sites to qualify affiliate links with rel=“sponsored”, whether the links were created by hand or by a plugin, and a Search Central blog post from July 2021 warns that unqualified affiliate links can bring manual or algorithmic actions.
Read each program's terms before you cloak its links. Amazon is the strictest large program, and other networks have their own wording.
Which redirect type should you use: 301, 302, or 307?
Use a 307 redirect when the destination may change, and a 301 when the destination is permanent.
| Redirect | Meaning | Use it when |
|---|---|---|
| 301 | Permanent move | The product page will not change |
| 302 | Temporary move | The destination may change soon |
| 307 | Temporary move, keeps the request method | The destination may change, and you want the safest temporary choice |
A 301 tells browsers and search engines the move is permanent, so they may cache it and pass it on. That is fine for a product page you expect to keep, but a cached 301 is hard to undo if the retailer changes its links.
A 307 is the safer default for affiliate links. It tells browsers the move is temporary, so they check your site again on the next click, and you can change the destination at any time.
ThirstyAffiliates uses a 301 as its default, while Pretty Links lets you pick per link. Check the default in your plugin before you create your first link, and set it to 307 if your links change often.
How do you cloak links with Pretty Links?
Pretty Links turns long affiliate links into short branded links on your own domain.
The plugin's WordPress.org page says it supports 301, 302, and 307 redirects per link, with custom or auto-generated slugs, and it logs each click with referrer, browser, operating system, and host. The free version covers the core redirect features.
- Go to Plugins > Add New, search for “Pretty Links”, then click Install Now and Activate.
- Open Pretty Links > Add New Link in the WordPress admin menu.
- Paste your full affiliate link, with its tracking ID, into the Target URL field.
- Pick 307 from the Redirection dropdown when the destination may change.
- Type a short slug into the Pretty Link field, such as /recommends/speaker.
- Save the link, then copy the short link and use it in your posts.
When the retailer changes its link, edit the Target URL once. Every post that uses the short link then points to the new destination without further edits.
How do you cloak links with ThirstyAffiliates?
ThirstyAffiliates is a link manager that creates short branded links with a /recommends/ prefix by default.
The plugin's WordPress.org page describes it as an affiliate link management and cloaker tool. You can choose 301, 302, or 307 redirects, group links into categories, and track clicks with built-in reports.
- Go to Plugins > Add New, search for “ThirstyAffiliates”, then click Install Now and Activate.
- Open Affiliate Links > Add New in the WordPress admin menu.
- Enter a name for the link and paste the full affiliate link into the destination field.
- Set the redirect type to 307 when the destination may change.
- Save the link, then insert it into a post with the ThirstyAffiliates button in the editor.
ThirstyAffiliates also has a smart uncloaking feature for programs that dislike links behind a redirect. Its plugin page names Amazon Associates as an example, so turn that feature on for Amazon links rather than cloaking them in the usual way.
How do you keep cloaked links out of search results?
Keep cloaked redirect URLs out of your sitemap, and mark the links as sponsored where they appear.
A cloaked link is a redirect, not a page, so it has no content for search engines to index. Most link plugins keep these URLs out of sitemaps on their own, but check your SEO plugin's sitemap settings after install, and confirm no /go/ or /recommends/ URLs appear there.
Add rel=“sponsored” to the link where it appears in your content. Google's guide to qualifying outbound links says to mark advertisements or paid placements with the sponsored value, and affiliate links count as paid placements.
Do not add cloaked links to your navigation menus or your footer. Keep them inside the posts where the disclosure sits next to them.
What mistakes should you avoid?
The most common mistake is cloaking a link and then forgetting the disclosure that must sit next to it.
- Hiding the destination: a short link that gives no hint of the retailer misleads readers.
- Stripping the tracking ID: the retailer must receive the full link, or you earn nothing.
- Using 301 for everything: a permanent redirect is hard to undo when a product page moves.
- Cloaking Amazon links the usual way: Amazon's rules forbid hiding that a link goes to Amazon.
- Adding too many link plugins: two cloaking plugins can fight over the same redirect rules.
- Forgetting the disclosure: a cloaked link still needs a clear FTC disclosure beside it.
Too many plugins cause their own trouble. Our guide on how many plugins is too many for WordPress explains when an extra plugin costs more than it saves.
Our guide to fixing plugin conflicts covers what to do when two plugins clash over the same redirect rules.
Old or abandoned link plugins are a risk too. Our guide to spotting an abandoned WordPress plugin shows how to check whether a plugin still gets updates before you trust it with your links.
How do you check a cloaked link works?
Click the short link yourself, and confirm the full affiliate link reaches the retailer with its tracking intact.
- Open the short link in a private browser window and confirm it lands on the right product page.
- Check the address bar on the retailer page and confirm your tracking ID is present.
- Click the link from a phone and confirm the redirect still works on mobile.
- Open your plugin's click report and confirm the click was logged.
- Change the destination once and click again, to confirm every post now points to the new page.
Click tracking has privacy effects. Our guide to GDPR compliance for WordPress explains what a site that logs clicks must cover, including IP addresses in click logs.
Check links on a schedule. A product page can move or disappear, and a cloaked link will keep redirecting to the old address until you update it.
Frequently asked questions
Is it legal to cloak affiliate links?
A short branded link on your own domain is fine when readers can tell it is an affiliate link and the retailer still gets its tracking. Hiding the destination or the paid connection is not fine, and Amazon bans cloaking that makes it unclear a link goes to Amazon.
Do cloaked links still need a disclosure?
Yes. A cloaked link is still an affiliate link, so the FTC wants the same clear and conspicuous disclosure next to it. The short link does not hide the paid connection, and the disclosure must sit close to the recommendation.
Can I cloak Amazon affiliate links?
No. Amazon's program rules forbid cloaking that hides the fact that a link goes to Amazon, or hides the site the click came from. Use ThirstyAffiliates' smart uncloaking feature for Amazon links, or use the full Amazon link instead.
Should I use a 301 or 307 redirect for affiliate links?
Use a 307 when the destination may change, because browsers check your site again on the next click. Use a 301 only when the product page is permanent, because browsers may cache a 301 and keep following it after you change the destination.
Can I use two link cloaking plugins at once?
Use only one link management plugin at a time. Two plugins can both try to handle the same short URLs, which breaks redirects or logs clicks twice. Pick one, learn its settings, and remove the other.
Sources
- PrettyLinks WordPress.org
- ThirstyAffiliates WordPress.org
- Associates Program Operating Agreement Amazon Associates
- The FTC's Endorsement Guides: What People Are Asking Federal Trade Commission
- Qualify your outbound links to Google Google Search Central
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
