1

Paid links (e.g. affiliate links) should have the rel="nofollow" attribute added them to prevent passing on PageRank. But is this necessary if the URL is already blocked by robots.txt?

Example: Let's say this is an affiliate link (served with a redirect script).

<a href="http://example.com/go/bluehost.com" rel="nofollow">Bluehost</a>

Is the rel="nofollow" necessary if robots.txt contains:

User-Agent: *
Disallow: /go/
1
  • I am assuming that example.com is your site and /go/ is a redirect to bluehost.com? I ask this for the benefit of our users. If so, I would personally have both even if not technically required. Better safe than sorry. Cheers!!
    – closetnoc
    Mar 20, 2017 at 1:19

2 Answers 2

1

I would suggest having both. While perhaps not completely 'necessary', it will ensure there is no room for any penalties to be applied.

0
1

In this case, the rel="nofollow" attribute on the anchor is not necessary.

Since you are using a redirect script, which is blocked by robots.txt, search engine bots (eg. Google) will not crawl your script and will never see the redirect. The bots have no idea of the final target of your links and so cannot attribute any "PageRank" to the affiliate link. The bots simply see an internal link.

Related:
How can I tell if a site uses dofollow or nofollow links?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.