How to “nofollow” Your Affiliate Links (and When You Should)

nofollow_Pretty Links

Affiliate marketing can provide an income boost to your business through well-placed links. However, search engines often crack down on affiliate sites that contain too many paid links and penalize them where it hurts – their search engine ranking.

Even so, there are ethical ways around this. They enable you to still promote affiliate products without being read your virtual rights. It all centers around the concept of “link juice” and how it's earned.

In this post, we’ll discuss how search engines track affiliate links and why this can be bad news for your business. We’ll also help you understand follow vs. nofollow links by providing you with two simple solutions based on the nofollow attribute – a manual method and the Pretty Links way. Then we'll explain how you can use each method to protect your site from penalties. Let’s get started!

Why Search Engine Bots Track Your Affiliate Links (and What “follow” vs. “nofollowMeans)

It's no doubt that affiliate links are an important part of your business. However, search engines don't take kindly to a plethora of affiliate (i.e. paid) links on your website. However, before you give up on affiliate marketing altogether, keep in mind, it's not as cut and dry as it appears.

When you add a link to your WordPress site, it's automatically classed as “dofollow“. This means the linked site will receive some of your site's link juice.

However, when you have too many links pointing to affiliate sites, you make it appear as if they are directly paying you for a search engine optimization (SEO) boost. This is what leads to penalties, including the loss of your hard-earned search engine ranking.

You can avoid this with the nofollow attribute. By adding a nofollow to your affiliate links, they won't be included when search engine bots crawl through your site. Essentially, the attribute does what it says; it tells the bot not to follow the link or pass on any of your site's link juice.

There are two ways to go about ensuring affiliate links aren’t tracked by search engine bots. The first is a manual process within the WordPress editor. The second involves link cloaking with Pretty Links. Let's take a look at each.

How to Manually nofollow Your Affiliate Links

We've covered the importance of, and differences between follow vs. nofollow links. Now we'll show you how to add the nofolow attribute to your own links.

You'll need to be in the WordPress editor for this, and initially, it doesn't matter whether you're using the visual or text editors. However, once you've added a link, you’ll need to be within the text editor:

WordPress Visual and Text Editor

Here, you'll see the underlying HTML code of your post or page. You'll need to scour your content to find the link in question:

WordPress editor text pane link

To manually nofollow the link, you'll need to add some code. First, place your cursor between the closing double quote and angled bracket. Next, add a single space, then type rel=”nofollow”:

Manually nofollow your affiliate links WordPress editor

Once you save your changes, that's it! This option, while effective at preventing search engine penalties, can be tedious if you have a lot of links. Fortunately, there’s a much quicker way to get the same results by using Pretty Links.

How to Cloak and nofollow Your Affiliate Links Using Pretty Links

While Pretty Links is certainly the leader in link shortening, it also offers a variety of other features, such as the ability to cloak your links and set the nofollow attribute automatically. What's more, the process is very straightforward.

However, first things first, let's discuss link cloaking. This is a process that enables you to change the look of a target URL. Instead of a lengthy and unappealing affiliate link that could be mistaken as something not worth clicking, the alternative is to cloak it with a pretty URL such as

In addition, the cloaked link will still redirect to the target URL. Ultimately, it will look cleaner, and it can be branded to include your website's address.

After installing and activating the plugin, you’ll find a new option on the left side of your WordPress dashboard. To add a new link, navigate to Pretty Links > Add New Link:

Pretty Links Add New Link

You'll be brought to the Add Link screen. The first thing you'll want to do is choose Cloaked from the Redirection drop-down list:

Pretty Links Redirection Cloaked

Next, enter the target URL (including www). This will be your original affiliate link. Next, add the “slug” you'd like to use for your cloaked link to the Pretty Links field. Then, add a title and notes for your own reference if you wish:

Pretty Links target URL

To make this link a nofollow, expand the Advanced Options section and select the No Follow checkbox:

Pretty Links Advanced Options

You can also add new links from within posts and pages. To do so from within the WordPress editor, select the star icon from the visual editor's toolbar:

Pretty Links icon WordPress editor

You'll be greeted by a pop-up menu, which enables you to enter your link information as you did from the Add Link screen. You can also select the redirect type and nofollow from within this pop-up, as well as enable link tracking:

Pretty Links editor popup menu

It's a handy, code-free way to nofollow, cloak, and track your affiliate links, all from your WordPress visual editor.


If you’re an affiliate marketer worried about search engine penalties, you have nothing to fear. First, be sure you have an understanding of the differences between follow and nofollow links. Then use the nofollow attribute and Pretty Links’ cloaking feature. This way, you can be sure to keep the search engine police away from your virtual door and retain your hard-earned ranking.

In this post, we've discussed the negative impact that uncloaked affiliate links can have on your marketing website. However, there are two things you can do to avoid search engine penalties. To recap, you can:

  1. Use the manual nofollow attribute on your affiliate links.
  2. Use Pretty Links to cloak and nofollow your affiliate links.

Do you have any questions about the nofollow attribute, the differences between follow vs. nofollow links? Let us know in the comments section!

IfIf you liked this article, be sure to follow us on Facebook, Twitter, Pinterest, and LinkedIn! And don't forget to subscribe in the box below.

Affiliate Link Disclosure

Categories: How Tos
About John Hughes

John is a blogging addict, WordPress fanatic, and staff writer.