Affiliate Disclosure: This post contains affiliate links. If you buy through them, I may earn a commission at no extra cost to you.
Wanna learn how to cloak affiliate links in Blogger?
But don't know how to do it.
So, today I will tell you the simple and safe way to cloak affiliate links in Blogger. No plugin, no paid tool, and no broken code.
First, let me clear one thing. Cloaking does not mean hiding your affiliate link from Google or from your readers. That is called deceptive cloaking, and Google does not allow it.
Real link cloaking is simple. You show a short, clean link on your own blog, like yourblog.com/p/go-hostgator.html, and when a reader clicks it, it takes them to the merchant with your affiliate ID. The reader still reaches the same product. You just make the link short, clean and easy to remember.
That is all cloaking is. A branded redirect. Nothing secret.
What Is Link Cloaking?
Link cloaking is a process in which you replace a long, ugly affiliate link with a short link on your own blog.
For example, instead of this:
https://www.hostgator.com/shared?aff=alfaaz123&tracking=blogpost
You show this:
https://shoutersplanet.blogspot.com/p/go-hostgator.html
Both links take the reader to the same place. The second one is just clean, short and easy to trust. That is why bloggers cloak their links.
Can We Cloak Affiliate Links In Blogger?
Yes, you can. But Blogger works differently from WordPress.
In WordPress, there are plugins like Pretty Links and ThirstyAffiliates. You install the plugin, add your link, and it creates the cloaked link for you.
In Blogger, there is no such plugin. Blogger does not allow plugins, and it does not give you .htaccess or server settings. So you cannot cloak links the WordPress way.
But you can still do it in Blogger. I will show you two methods below. The first one is the best method. The second one is the simplest method.
Why Cloak Affiliate Links?
There are three good reasons.
1. Clean links look better. A long link full of numbers and tracking codes looks spammy. A short link like /p/go-hostgator.html looks clean and professional.
2. Easy to manage. If the merchant changes your affiliate link, you change it in one place only. Every post that uses your cloaked link keeps working.
3. Easy to remember. You can say your link in a video or a post, and readers can type it easily. If you use an affiliate network like Cuelinks, one cloaked link can even cover many merchants — read my Cuelinks Review to see how that works.
But cloaking alone will not protect you from Google. What protects you is honest marking and disclosure. I will explain that in the next section, because it is the most important part of this post.
The Rule You Must Follow First
Before you cloak any link, remember these two rules. They are not optional.
Rule 1: Mark every affiliate link with rel="sponsored". Google says paid links, including affiliate links, should carry rel="sponsored". rel="nofollow" is also accepted. This tells Google the link is a paid placement, not an editorial vote. If you leave affiliate links as normal followed links, Google can treat that as link spam.
Rule 2: Tell your readers. Write a short disclosure near the top of your post, like the one at the top of this post. Your readers should know that you may earn a commission. Hiding that fact breaks trust, and it also breaks advertising rules in many countries.
Google does not penalize you for using affiliate links. It penalizes thin affiliate pages — pages that only copy the merchant's description and add nothing of their own — and undisclosed paid links. So write your own honest review, add your own experience, and mark your links properly. That is the safe way. If you want the basics first, read my What Is SEO? Free Guide For Beginners.
Method 1: Cloak With A Blogger Redirect Page (Best Method)
This is the method I recommend when you want to cloak affiliate links in Blogger. You create a normal Blogger page for each affiliate link, and that page redirects the reader to the merchant.
Step 1. Go to your Blogger Dashboard.
Step 2. Go to Pages, then click New page.
Step 3. Give the page a simple title, like Go to HostGator. Set the page link (permalink) to go-hostgator. Your cloaked link will now be:
https://yourblog.blogspot.com/p/go-hostgator.html
Step 4. Switch the page editor to HTML view.
Step 5. Paste this code in the HTML view:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting to HostGator...</title>
<meta http-equiv="refresh" content="0; url=https://www.hostgator.com/shared?aff=alfaaz123">
<link rel="canonical" href="https://www.hostgator.com/shared?aff=alfaaz123">
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<p>Redirecting to HostGator... <a href="https://www.hostgator.com/shared?aff=alfaaz123" rel="sponsored nofollow">Click here if you are not redirected</a>.</p>
</body>
</html>Replace the three HostGator URLs in the code with your own affiliate link.
Step 6. Publish the page. Now, whenever you want to link to HostGator, link to your page (/p/go-hostgator.html) and add rel="sponsored" to that link, like this:
<a href="https://yourblog.blogspot.com/p/go-hostgator.html" rel="sponsored">HostGator</a>That is it. Your readers see a clean link on your blog. The page redirects them to the merchant. And the link is marked properly for Google.
One warning: do not create hundreds of redirect pages for links you never use. Create one page per product you actually recommend. And do not use this method to show Google one page and readers a different page. That is deceptive cloaking, and it can get your blog penalized.
Method 2: Use A Short Link With rel="sponsored" (Simplest Method)
If you do not want to create redirect pages, use this method to cloak affiliate links in Blogger in the simplest way. It is not true cloaking, but it is honest and it works.
Just link to the merchant directly, and add rel="sponsored" to the link. In the Blogger post editor, switch to HTML view and write your link like this:
<a href="https://www.hostgator.com/shared?aff=alfaaz123" rel="sponsored nofollow">HostGator</a>Your readers will see the long link when they hover over it, but the link is marked correctly for Google, and your disclosure tells them it is an affiliate link. For a small blog, this method is enough. Start with this one if Method 1 feels like too much work.
What About The Old jQuery Method?
You may find old guides, including the old version of this post, that tell you to paste a jQuery script in your theme to cloak links automatically. Do not use that method now.
That script used jQuery 1.7.2 from 2012, loaded over http:// instead of https://, and it had a bug — a line of code sat outside the main function, so the script did not work as written. It also changed links after the page loaded, which is confusing for readers and hard to maintain.
The redirect-page method above does the same job in a clean way, without touching your theme at all. And remember the standing rule for this blog: never edit the theme unless you have a specific reason and a backup. These two methods do not need any theme change.
Common Mistakes To Avoid
1. Cloaking without disclosure. A short link does not hide the fact that it is an affiliate link. Always disclose it.
2. Using followed affiliate links. Always add rel="sponsored" (or rel="nofollow"). A followed paid link is link spam in Google's eyes.
3. Cloaking links to products you never tried. Only recommend products you have used or checked properly. Your readers trust you. Do not break that trust for a commission.
4. Stuffing a post with affiliate links. One or two honest recommendations beat twenty links in a thin post. Google calls pages with no added value "thin affiliation", and it does not rank them well. For more on-page basics, see my Blogspot SEO Tips.
FAQs
Is affiliate link cloaking allowed by Google?
Yes, learning how to cloak affiliate links in Blogger with a branded redirect on your own site is allowed, as long as you do not show Google one thing and readers another, and you mark the link with rel="sponsored" and disclose the relationship. Google's own rule is here: Qualify your outbound links to Google.
Do I need a plugin to cloak links in Blogger?
No. Blogger has no plugins. Use the redirect-page method in this post. It needs no plugin and no theme change.
Will cloaking help my post rank better?
No. Cloaking does not improve rankings. Good content, honest reviews and proper link marking are what help.
What is the difference between cloaking and shortening?
A shortener like bit.ly gives you a short link on someone else's domain. Cloaking gives you a short link on your own domain, like /p/go-hostgator.html. Your own domain looks more trustworthy.
Wrapping Up
So, this is how to cloak affiliate links in Blogger the right way. Make a clean redirect page, mark your links with rel="sponsored", and tell your readers clearly.
Do not chase tricks to hide links from Google. Be honest, write your own reviews, and recommend only what you truly believe in. That is what builds trust, and trust is what earns commissions in the long run.
What is your way of managing affiliate links? Share it in the comments.



Hi sir,
ReplyDeleteSome nice set of blogs shared in this post that makes this post different from other crappy posts Will try comment on some of these blogs.
Thanks for sharing.
Thank you so much for sharing it in deatil.
Very useful one.
May you have a Blessed Sunday.
Keep sharing
Best Regards
Importance of seo
Hi @Ann. I am glad that you liked the post. Thank you so much for appreciating me. Keep Visiting my blog.
DeleteThere is an error when trying to cloak the link following the script:
ReplyDeleteError parsing XML, line 355, column 45: The reference to entity "u" must end with the ';' delimiter.
How can be fixed?
Hi @Daniela. Go to line 355 in your template and check all the delimiter. If you are still facing problem comment down. Thanks for visiting. Take Care.
Delete