Prevent Search Engine Index Links On Blog Comment Box.

source: bloggeremperor

If your blog attract people to comment, that is a good thing. It’s mean your blog is popular, and in SEO term, google “appreciate” a blog that have real conversation by giving them good ranking on SERP. However, manage comments box can be a little bit frustrated. It’s a joy for webmaster when they see comments, but when people leave links that is not related to your content, that is bad for your site health.

For example, if you run a fashion blog but someone leave backlinks to insurance or medicine company, in google eyes it’s not “okay”, spammy, and look suspicious that eventually will put your blog on bad zone. For some site owner who doesn’t want to be bother to manage the comment box, you need to automatically make all backlinks as nofollow.

For blogger template there is one tag that use as permalink comment generator. It’s a unique permalink with structure like below:

http://stayblogging.blogspot.com/2013/12/url-title.html#comment-4946048359309488959

If you click on it, it will lead you to certain part of post comment box. In default setting, the template designer usually make it dofollow/give search engine permission to index it. The solution to tell SE to stop index links is by adding “rel=nofollow” tag on your comment box html. This trick also can fix duplicate content. Just follow the instruction below:

1. Go to your blog template section and click Edit HTML button.
2. Look for this section:

<a expr:href='”#comment-” + data:comment.id’ title=’comment permalink’><data:comment.timestamp/></a>

or

<a expr:href=’data:comment.url’ title=’comment permalink’> <data.comment.timestamp/></a>

These two are comment permalink tag on blogger template, it’s just depends which one the template designer use.

3.  Now add attribute rel=nofollow inside the tag, so it will look like this:

<a rel=”nofollow” expr:href='”#comment-” + data:comment.id’ title=’comment permalink’><data:comment.timestamp/></a>

or

<a rel=”nofollow” expr:href=’data:comment.url’ title=’comment permalink’><data:comment.timestamp/></a>

or on old blogspot template version:

<a rel=”nofollow” expr:href=’&quot;#comment-&quot; + data:comment.id’ title=’comment permalink’></a>

5. Preview. If everything good, save it.

Now, google, bing, and yahoo will stop following and index all links left on your comment box. It’ll take time until SE recognize this new change.

Leave a Reply

Your email address will not be published. Required fields are marked *