How to write the Nofollow tag and how to use it

How to write the Nofollow tag and how to use it

The "nofollow" tag was proposed by Google, Yahoo and Microsoft a few years ago. Links with this tag will not be calculated in terms of weight. Search engines support the nofollow attribute, which can greatly suppress spam comments in blogs or forums. It is a great thing for webmasters.

nofollow is a value of the content attribute of the HTML meta tag (meta) and the rel attribute of the link tag (a), which tells the machine (crawlers) not to track the target page. In order to combat blogspam (blog spam), Google recommends using nofollow, telling search engine crawlers not to crawl the target page, and also telling search engines not to pass the Pagerank of the current page to the target page. However, if you submit the page directly through the sitemap, the crawler will still crawl it. The nofollow here is just an attitude of the current page towards the target page, and does not represent the attitude of other pages towards the target page.

Use of nofollow

There are two ways to use nofollow:
1. Used in meta tags: <meta name="robots" content="nofollow" />, telling crawlers that all links on this page do not need to be followed.
2. Used in the a tag: <a href="login.aspx" rel="nofollow">Login</a>, telling the crawler that this page does not need to be tracked.

What does nofollow do?

Nofollow has three main functions:
1. Prevent unreliable content. The most common ones are spam messages on blogs and spam links in comments to obtain external links. This is to prevent pages from pointing to junk pages and sites.
2. Paid links: To prevent paid links from affecting Google’s search result rankings, Google recommends using the nofollow attribute.
3. Guide the crawler to crawl effective pages: avoid the crawler from crawling some meaningless pages, which affects the efficiency of the crawler.

Pagerank Sculpting

Abuse of nofollow. In order to achieve maximum search engine optimization, some SEOs use nofollow to control the flow of PR, which can optimize some specific pages well. Of course, this kind of optimization is more suitable for some old sites that have accumulated a considerable amount of PR. In order to prevent PR pruning and abuse of nofollow, Google has weakened the effect of nofollow. Previously, nofollow not only did not cause PR flow, but also did not cause PR loss. Although the current nofollow regulations will not cause PR to flow to the target page, the target page that originally flowed to it will be lost. For example, the current page PR is 1, and there are 10 links on the page, one of which is a nofollow link. According to the previous nofollow regulations, the target page pointed to by each non-nofollow link will get 1/9 of the PR, and the link containing nofollow cannot get PR. However, according to Google’s new regulations on nofollow, the target page pointed to by non-nofollow links can only get 1/10, and nofollow links also cannot get PR, which means a loss of 1/10 of the PR.

SEO Tips
The effect of nofollow in Google is already very weak, so SEOs can only rely on manual review methods to control the flow of the site’s PR and avoid links pointing to spam pages.

Let’s take a look at an example of how to write a nofollow tag, taking my blog as an example:

A normal A tag looks like this:


Copy code
The code is as follows:

<a href="http://www.xxx.com">xxx</a>

Now I add the nofollow tag, as follows:


Copy code
The code is as follows:

<a href="http://www.xxx.com" rel="nofollow">xxx</a>

This will successfully tell the spider not to follow this link. When you don’t want to lose weight to an external link, but have to have the link appear in the content, you can use this method to block it.

Next, let me share with you the true face of nofollow:

1. Nofollow tag restricts spiders from crawling links. External links with nofollow tag have no weight transfer effect.

In order to avoid having their weight divided by external links on the page, some websites set nofollow for the external links that appear on the page. Then such links will not have the effect of transferring weight. If there is no link bait (such as Soso Q&A), then the release of external links should be stopped decisively, and the website administrators should just play stand-alone games, such as NetEase Blog and Startup Space.

2. The presence or absence of the Nofollow tag is one of the factors that must be considered when exchanging friendly links

We all know that exchanging friendly links is not to obtain a little bit of click traffic from the other party's website, but to improve the website's weight. Some webmasters will add a nofollow tag to the friendly link part, causing the friendly link to lose its original meaning. This behavior is a deceptive behavior. Of course, some webmasters do not have a nofollow tag when exchanging friendly links with you, and secretly add a nofollow tag after a period of time. To avoid this situation, you are required to check the website with which you exchange friendly links every once in a while. If you encounter this situation, you must decisively remove the other party's link immediately.

3. The Nofollow tag only prevents weight output and cannot avoid weight loss, but it can guide spiders to crawl.

For example, when there are 5 external links on your page, the weight of each external link is 1/5. If you add a nofollow tag to one of the external links so that the spider does not crawl this link, the weight of the remaining 4 external links will still be 1/5, and the weight of the page will be divided among these 5 links, but the weight of the link with the nofollow tag is lost instead of being transferred. This seems to be a behavior of "harming others and not benefiting yourself", but it also has its benefits. It can guide the spider's crawling and allow spiders with bandwidth limitations to crawl more pages in a limited time.

4. Nofollow and External nofollow

From the literal meaning, nofollow means "don't track", while extenal nofollow means "external don't track". Maybe you have already figured out that they mean the same thing. External nofollow is just a more standardized way of writing nofollow. Don't worry about it, they mean the same thing!

The Nofollow tag can also be used in many places, such as the comment section of WordPress articles, and the use of external links introduced for user experience, etc. Nofollow is a double-edged sword and requires some time to figure out. This article was originally written by Zhang Donglong, the director of SEO learning website. The original address is http://www.zhangdonglong.com/archives/615. Please indicate the source when reprinting. Thank you.

<<:  Limit input type (multiple methods)

>>:  Let me teach you how to use font icons in CSS

Recommend

JavaScript implementation of verification code case

This article shares the specific code for JavaScr...

Jmeter connects to the database process diagram

1. Download the MySQL jdbc driver (mysql-connecto...

How to run MySQL using docker-compose

Directory Structure . │ .env │ docker-compose.yml...

Install nodejs and yarn and configure Taobao source process record

Table of contents 1. Download nodejs 2. Double-cl...

How to install PHP7 Redis extension on CentOS7

Introduction In the previous article, we installe...

Html comments Symbols for marking text comments in Html

HTML comments, we often need to make some HTML co...

JavaScript parseInt() and Number() difference case study

Learning objectives: The two functions parseInt()...

Detailed tutorial on installing phpMyAdmin on Ubuntu 18.04

We will install phpMyAdmin to work with Apache on...

Solution to the problem of repeated triggering of functions in Vue project watch

Table of contents Problem description: Solution 1...

Solve the problem of docker container exiting immediately after starting

Recently I was looking at how Docker allows conta...

How to configure the Runner container in Docker

1. Create a runner container mk@mk-pc:~/Desktop$ ...

Using react+redux to implement counter function and problems encountered

Redux is a simple state manager. We will not trac...

MySQL FAQ series: When to use temporary tables

Introduction to temporary tables What is a tempor...

Related commands to completely uninstall nginx under ubuntu16.04

nginx Overview nginx is a free, open source, high...