程序员人生 网站导航

Nofollow,禁止搜索引擎跟踪链接

栏目:网络优化时间:2014-01-11 15:36:25

nofollow 标签是由 Google 提出的,目的是为减少垃圾链接对搜索结果的影响。当链接使用 nofollow 属性后,搜索引擎会减少甚至完全不跟踪此链接。简单而言,此链接于搜索引擎是无效的,并不能增加有效外链或提高权重。

网络博客的兴起,同时造成了垃圾评论和链接的泛滥,Google 提出 nofollow 标签的初衷在于屏蔽这些垃圾评论和链接。当某个链接带有 nofollow 属性时,它不会被作为搜索结果排名的参考依据,也不会传递 PageRank 值,能有效防止 PageRank 流失。

给链接增加 nofollow 属性的方法:

1. 在 Meta 标签中定义 nofollow,代码如下:

<meta name="robots" content="noindex,nofollow" />

表示禁止搜索引擎索引此页面,并禁止跟踪此页面中所有链接。

有四种属性组合方式:

<meta name=”robots” content=”index,follow”>
<meta name=”robots” content=”noindex,follow”>
<meta name=”robots” content=”index,nofollow”>
<meta name=”robots” content=”noindex,nofollow”>

其中 index 表示允许收录,noindex 为禁止收录;follow 表示允许跟踪页内链接,nofollow 为禁止跟踪。

2. 在链接中定义 nofollow,代码如下:

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

搜索引擎检测到此链接时,不再继续跟踪。

综上所述,一旦链接被加上 nofollow 属性,就没有多大意义了。因此在交换友情链接时,应防范对方使用 nofollow 链接方式。

出处:www.mangguo.org

------分隔线----------------------------
------分隔线----------------------------

最新技术推荐