Learn How to Cloak and Hide Affiliate Links in WordPress- And Why You Should Do it Every Single Time

Disclosure (full version- https://nikolaroza.com/affiliate-disclosure/): Some of the links you’ll encounter are affiliate links. If you click and buy something, I will get a commission. Thank you! 

Cloaking affiliate links.

  • What it is?
  • Why you need to be doing it?
  • How to cloak affiliate links in WordPress and with plugins?

This and much more in this quick tutorial.

Let’s go!

What is Affiliate Link Cloaking Exactly?

Affiliate link cloaking; sounds confusing I know, but it’s just you taking your raw affiliate links and replacing them with prettier, cloaked versions while keeping your precious affiliate id code intact.

Affiliate cloaking is something you must do if you’re serious about affiliate marketing.

The benefits are obvious and drawbacks can hurt your site big time.

Here’s everything you need to know.

6 Reasons Why You Need to Cloak Your Affiliate Links

Affiliate Links are Ugly- Boost Your CTR With Cloaking!

Here’s my Smart Podcast Player affiliate link

  • https://fusebox.fm/?lmref=CWWLRA

And heres’e that same link but cloaked.

  • Try out Fusebox podcast player today!

Get it?

By cloaking affiliate links, you get to hide their gruesome appearance; but keep their destination. So the previous link, which honesty looks spammy and simply repels you to click is turned into this beauty that invites you to click it, and that’s nearly impossible to say no to.

#2- Easier Affiliate Link Tracking and Management

As you will soon see below, you cloak affiliate links with WordPress plugins. The benefit to this method is that all links will be accessible from within the plugin’s dashboard (unlike for example with ClickMagick which is a web-bad app.), meaning in one place and easy for you to manage.

So if a merchant changes their affiliate codes, you go in and change one link on your end, and that change automatically updates all links across your site.

Staying organized is key if you want to be successful with affiliate marketing and cloaking helps a tonne.

Some networks even help you with the organization. For example, Fiverr’s affiliate program offer their own link cloaking service for you to use.

It’s mandatory to use it and in this case, you wouldn’t want to cloak your links with a plugin, because that might break them.

#3- Easy No-Following

Google considers affiliate links to be paid links; and as such you must put a no-follow tag on it or risk getting either an algorithmic search engine penalty (Penguin), or a manual penalty.

#4- Avoid Ad Blockers

Ad blockers (the most famous of which is Ad Bloc Plus) block out all banner ads from popular merchants.

And even if you’re using custom-made banners with affiliate links embedded you run the risk of your banners being noticed and blocked.

The solution is to cloak your affiliate links before you embed them becuse this will hide your affiliate code id and ad-blockers will be fooled.

#5- Potential Affiliate Commission Theft

By not cloaking your links you’re leaving them exposed to attacks. What I mean is there is malware out there that can go in and switch your affiliate id with the attackers and you would never know it happend.

The only way to notice this is by seeing a large drop in commissions and then investigating the cause. But by that point your well-earned affiliate earnings would be lost.

#6- Increase Email Delivery Rates

Raw affiliate links in emails often trigger spam filters (especially if they use CleanTalk) and thus emails get filtered.

And if this happens too often, not only will you lose on potential sales, but your mail could become blacklisted. This means that none of your emails, affiliate links or not, will ever reach their intended recipients.

And that’s a scary thought indeed.

#7- Saves Precious Time

Cloaking affiliate links takes some time. Typically a few minutes.

But, when you do it once, that’s it!

You can re-use the same link over and over without ever giving this matter a second thought.

Do it once. Do it right; and you’re set!

And here’s how to do it!

 How to Cloak Affiliate Links in Your WordPress Blogs- Use Plugins of Course!

Now that you know why cloaking your affiliate links is super important, it’s time to show you how to do it.

Since we’re all using WordPress (I hope) the easiest way to cloak links is with plugins, and my picks are:

  • Thirsty Affiliates
  • Pretty Links

Let’s cover both, shall we?

How to Cloak Affiliate Links with Thirsty Affiliate Plugin

First, go and add Thirsty Affiliates to your WordPress dashboard.

Thirsty affiliates plugin

So now that you’ve added it to your WordPress site, it will show up in your dashboard’s left sidebar

Hover over the “Thirsty Affiliates” tab and click “Settings

Once you’re in you’ll see there’s a tonne of settings to tinker with. However almost all of it can be left as it is, on default mode.

But here’s what you need to change.

Click on the “Link Appearance” tab and modify the settings to be like this:

  • Link prefix– recommends
  • Link redirect type– 307 temporary redirect
  • Use nofollow on links– yes
  • Open link in a new window– yes (good for SEO as you keep them on your site and boost dwell time)

Setting up thirsty affiliate plugins

And that is it.

Now hover again on the Thirsty Affiliates tab and click “Add New Link”

Now just add in your affiliate links:

  • Title– the name of your link- this will be your link anchor
  • Affiliate Link– paste here your raw affiliate link that you got from your merchant

And then just save your links and you’re done.

add new link at Thirsty Affiliates

Now when you go to any WordPress post you can fetch that link right from the dashboard

Easy-peasy 😎 

How to Cloak Affiliate Links With Pretty Links Plugin

First, install the plugin.

Pretty Links plugin

Second, in your WordPress dashboard go and find the “Pretty Links” tab

Hover over it and click on “Options

Once again you don’t need to touch 99% of this stuff.

Instead, set it like this:

  • Redirection– 302 (Temporary)
  • Enable tracking – yes. You want to know if your affiliate links are getting clicked
  • Enable nofollow– yes

Click save and you’re done.

Pretty Links plugin settings

Now to create a new link, simply hover over the Pretty Links tab and go “Add New


  • Title– name  it so you know what the link is
  • Redirection– 302
  • Target URL- Your affiliate link
  • Pretty Link- Your new link

Save and you’re done..

Building a new cloaked links with Pretty Links

What I don’t like about Pretty Links is that when you want to add an affiliate link, you have to load up the plugin outside of the post you’re working on and then copy the link and paste it to your post.

It’s such an inefficient method and if you have  lot of affiliate links to add, then you lose a lot of time on it.

That is why I recently switched from Pretty Links to Thirsty Affiliates.

WordPress Affiliate links Cloaking- Frequently Asked Questions

a) Should I cloak Affiliate Links?

Yes you should.

If you’ve read the post then you know there are at least 7 benefits to managing your links properly. And each benefit becomes a loss if you don’t cloak affiliate links.

b) How Do I Cloak Affiliate Links in WordPress?

Use a link cloaking plugin.

Note: I recommend Thirsty Affiliates or Pretty Links

 c) Can I Cloak Amazon Affiliate Links?

Yes you can; and it is crucial that you do.

It’s because Amazon has different stores for different countries. And affiliate links for one country work for folks from that country only, but not for the rest of the world (hint: you’ll be losing commissions left and right).

For example:

  • United States: Amazon.com
  • United Kingdom: Amazon.co.uk
  • Canada: Amazon.ca
  • Brazil: Amazon.br
  • Germany: Amazon.de
  • Spain: Amazon.es
  • China: joyo.com
  • Italy: Amazon.it
  • Japan: Amazon.co.jp
  • France: Amazon.fr
  • Austria: Amazon.at
  • etc

And fore each country you have to generate unique affiliate code for each product you promote and it’s just a total mess.

I recommend you use Geni.us, a paid (but cheap) service that will help you create a universal Amazon affiliate link that will work for you at all times and in all corners of the world.

So no matter if your visitor is from Tel Aviv, Adis Abeba, Los Angeles or Tokyo, they will be able to purchase from your affiliate link, and you won’t be losing your hard-won affiliate commissions.

d) Is Hiding/Cloaking Affiliate Links Bad for SEO?


In fact, NOT cloaking your affiliate links can be disastrous for your SEO if Google suspects you’re selling Page Rank.

Conclusion-Now You Know How to Cloak Affiliate Links in WordPress, And Why You Should Do it

Affiliate link cloaking, not so confusing now, is it?

Not at all!

It’s is a useful practice that can protect you from affiliate commission thieves while letting you earn more money from users NOT repulsed by your ugly affiliate links.

And now thank’s to this:

  • ingenuous,
  • wonderful,
  • ultra super guide (hey I’m being modest here!)

you know exactly how to do it.

All that’s left for you to do is go and make more affiliate commissions, starting today.

But not before

leaving me a comment,


Thank you 😀

Nikola Roza

Nikola Roza is an affiliate marketer and blogger behind Nikola Roza- SEO for the Poor and Determined. He writes for bloggers who don't have huge marketing budgets and who still want to carve out a niche online and a better life for themselves. He's also passionate about precious metals IRAs and how to invest in gold and silver for a safer financial future. Learn about Nikola here, or read his blog posts and guides here.

2 thoughts on “Learn How to Cloak and Hide Affiliate Links in WordPress- And Why You Should Do it Every Single Time”

  1. Yeah, I agree Nikola.

    If one is into affiliate marketing, cloaking the links are so useful in several ways. Thanks to the Cloaker plugin which made it possible. I use Pretty links in one website and Thirsty Affiliates in another to cloak all the links which goes out.

    I agree with the point you made, pretty links are the most beginner friendly WordPress plugin to get started. But still I like thirsty Affiliates over it. It gives more functionality and lets me categorize the affiliate links even in the free versions as well. Many more advantages to it.

    • Hi Navin,
      thanks for pointing my attention to Thirsty Affiliates plugin. I’ve been meaning to get around to it and review it. Your comment just re-sparked my interest.


Leave a Comment