Nofollow makes the links in comments and messages really work

Nofollow makes the links in comments and messages really work

Comments and messages were originally a great way for webmasters to build community and readership. Unfortunately, comment and message features are often abused by spammers and other bad actors, many of whom use scripts or other software to generate and post spam comments.

Too many spam messages of this kind not only affect the appearance, but in most cases will also have a negative impact on the search engine ranking of your website! This has led many webmasters to prohibit the posting of URL hyperlinks in comments or messages, but this makes it impossible to reply to some content that really needs link guidance.

Now, we can use the "nofollow" tag. A few years ago, major search engines such as Google, Yahoo! and MSN introduced "nofollow", and this attribute has been widely adopted. Any links that use the rel="nofollow" attribute will not be used to calculate PageRank or determine the relevance of your page to a user query.

For example, if a spammer puts a link like this in your comment:

<a href="https://www.jb51.net/">This is a nice website! </a>It will be converted to:

<a href="https://www.jb51.net/" rel="nofollow">This is a nice website! </a>This new link will not be taken into account when calculating PageRank.

In this way, problems that occur when passing PageRank can be avoided. Although spam comments and messages cannot be avoided, meaningful directional links can still be published normally!

By default, many blogging sites (such as Blogger) automatically add this attribute to all posted comments.

<<:  Detailed explanation of CSS margin collapsing

>>:  Specific use of the autoindex module in the Nginx Http module series

Recommend

How to avoid the trap of URL time zone in MySQL

Preface Recently, when using MySQL 6.0.x or highe...

In-depth explanation of the locking mechanism in MySQL

Preface In order to ensure the consistency and in...

Font references and transition effects outside the system

Copy code The code is as follows: <span style=...

Detailed basic operations on data tables in MySQL database

Table of contents 1. View the tables in the curre...

MySQL query data by hour, fill in 0 if there is no data

Demand background A statistical interface, the fr...

Share 13 excellent web wireframe design and production tools

When you start working on a project, it’s importa...

How to enable the root account in Ubuntu 20.04

After Ubuntu 20.04 is installed, there is no root...

Detailed explanation of MySQL transaction isolation level and MVCC

Table of contents Transaction Isolation Level Pro...

Stop using absolute equality operators everywhere in JS

Table of contents Overview 1. Test for null value...

Example code for evenly distributing elements using css3 flex layout

This article mainly introduces how to evenly dist...

A Preliminary Study on JSBridge in Javascript

Table of contents The origin of JSBridge The bidi...