If you are promoting affiliate products, you need to cloak your links. Naked affiliate links look spammy, they are easy to hijack, and they make your content look unprofessional. The good news is that cloaking affiliate links is dead simple in 2026 and completely free.
In this post, I will show you exactly how to cloak affiliate links using free WordPress plugins so your URLs look clean, professional, and trustworthy.
What Is Link Cloaking and Why Does It Matter?
Link cloaking replaces your long, ugly affiliate URL with a short, branded link on your own domain. Instead of sending someone to https://clickbank.com/hop?affiliate=yourname&vendor=product123&tid=campaign, you send them to https://yourdomain.com/recommends/product-name.
Here is why that matters:
- Trust. Visitors are more likely to click a link that stays on your domain. A branded link signals that you stand behind the recommendation.
- Protection. Without cloaking, someone can swap your affiliate ID for theirs. Cloaked links hide the underlying URL and protect your commissions.
- Tracking. Cloaked links give you click data. You can see which links get clicked, from which pages, and how often. That data is gold for optimizing your content.
- Easy management. If a merchant changes their affiliate link structure, you update it in one place instead of hunting through every post on your site.
The Best Free Tools to Cloak Affiliate Links in 2026
There are two standout free WordPress plugins for link cloaking. Both are actively maintained, have hundreds of thousands of installs, and work perfectly for this purpose.
Pretty Links (Free Version)
Pretty Links is the most popular link cloaking plugin for WordPress. The free version gives you everything you need to get started:
- Create clean redirects like
/recommends/product-name - Choose between 301, 302, and 307 redirects
- Track clicks with basic reporting
- Organize links into groups
To set it up, install Pretty Links from the WordPress plugin repository, go to Pretty Links > Add New, paste your affiliate URL in the Target URL field, and customize your slug. That is it. Takes about 30 seconds per link.
ThirstyAffiliates (Free Version)
ThirstyAffiliates is another excellent free option, and it is purpose-built for affiliate marketers:
- Automatic keyword linking (the plugin can auto-insert your affiliate links when it detects keywords in your content)
- Link categories for organization
- Basic click statistics
- No-follow and sponsored link attributes built in (important for SEO compliance)
ThirstyAffiliates is especially useful if you mention the same products across many posts. The auto-linking feature saves a ton of time.
How to Set Up Link Cloaking Step by Step
- Install your plugin. Go to Plugins > Add New in your WordPress dashboard. Search for Pretty Links or ThirstyAffiliates. Install and activate.
- Create your first cloaked link. Navigate to the plugin settings, click Add New, paste your raw affiliate URL, and set a clean slug. I use the format
/recommends/product-namefor all my affiliate links. - Set the redirect type. Use a 301 redirect for permanent affiliate links. Use 302 if you might change the destination later. For compliance with Google's guidelines, also mark the link as
rel="sponsored"if your plugin supports it. - Replace old links. Go through your existing content and swap out naked affiliate URLs for your new cloaked versions. ThirstyAffiliates can automate this if you use its keyword linking feature.
- Check your work. Click each cloaked link to make sure it lands on the right page. Confirm your affiliate ID shows up in the destination URL.
A Note on Page-Level Cloaking
Years ago, some marketers used HTML iframes to make an entire affiliate sales page appear to live on their own domain. This technique is outdated and I do not recommend it in 2026. Most affiliate programs explicitly prohibit framing their sales pages, search engines can penalize it, and it creates a poor user experience on mobile devices.
Stick with link-level cloaking. It is cleaner, more reliable, and keeps you on the right side of affiliate program terms of service.
Best Practices for Affiliate Link Cloaking
- Always disclose. The FTC requires you to tell readers when you use affiliate links. Add a disclosure statement to every post that contains affiliate links.
- Use consistent URL structures. Pick a prefix like
/recommends/or/go/and use it for all your affiliate links. - Audit your links quarterly. Products get discontinued, merchants change programs, and links go dead. Check your cloaked links regularly to avoid sending readers to broken pages.
- Do not cloak links on platforms that prohibit it. Amazon Associates, for example, has specific rules about how links must be formatted. Always check your affiliate program's terms of service.
The Bottom Line
Cloaking affiliate links is a fundamental best practice for anyone doing affiliate marketing. It protects your commissions, builds trust with your readers, and gives you better data about what is working. With free plugins like Pretty Links and ThirstyAffiliates, there is zero reason not to do it.
Get this set up on your site today. It takes about 15 minutes and it will pay dividends for as long as you are in the affiliate marketing game.




This is good advice but there is another alternative that I have used successfully for some time and cloaks links very securely. Cloaker Buzz software is free and I have posted about it on my blog in the past. It enables secure cloaking and will even allow you to set cookies. It also prevents viewing of the page source code.
The one thing you can’t get around with Clickbank is the payment page which will always show your affiliate ID of course. Those who already have a CB account may still then decide to buy through their own link.
If any readers are interested in the software you can get it from the following page on my site
TheCaymanHost.com
Mark,
Great article (as always.)
One thing I would add: Check your “cloaked” page to see if the order process still works. Some order pages “look” at the URL of the referring page. In framed pages some order pages will not work.
Just so you know: I learned this the hard way.
I love this method of cloaking because it is pretty straight forward and easy to implement. Thanks so much Mark!
This method does not work on Firefox. Is there anyone know how to fix this problem?
Works in my FF browser – what are you seeing?
It’s just blank page shown in FF. Is there anything wrong with my FF?
Well, I am not sure — do you have the NoScript plugin turned on or something like that?
Right! some ad block add-on disable cloaked page. Thanks!!
Can I ask what the purpose of the script line at the top is for?
window.status=”Ready”
Hi again,
Actually I was referring to the entire line, not just the js that indicated what goes in the status bar of the browser
It just sets the message in the bottom status bar — not important.
Mark,
Normally when I setup GA on a site, then log into GA to view it’s status, Google runs a check against the site to see if the script is present, then modifies its status to say that data is being accumulated.
However after implementing the idea above, the status hasn’t changed in GA for my domain. It has me a bit concerned. Could it be Google has actually missed reading the script?
Thanks.