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

XHTML 1.0 Reference

Arrange by functionNN : Indicates which earlier ve...

8 essential JavaScript code snippets for your project

Table of contents 1. Get the file extension 2. Co...

Vue implements infinite loading waterfall flow

This article example shares the specific code of ...

MySQL's method of dealing with duplicate data (preventing and deleting)

Some MySQL tables may contain duplicate records. ...

Example of converting timestamp to Date in MySQL

Preface I encountered a situation at work: In the...

Nginx uses Lua+Redis to dynamically block IP

1. Background In our daily website maintenance, w...

Installation steps of mysql under linux

1. Download the mysql tar file: https://dev.mysql...

Two implementations of front-end routing from vue-router

Table of contents Mode Parameters HashHistory Has...

mysql indexof function usage instructions

As shown below: LOCATE(substr,str) Returns the fi...

More elegant processing of dates in JavaScript based on Day.js

Table of contents Why use day.js Moment.js Day.js...

Example steps for using AntV X6 with Vue.js

Table of contents 0x0 Introduction 0x1 Installati...

Mysql table creation foreign key error solution

Database Table A: CREATE TABLE task_desc_tab ( id...