Meta 标签用法及 robots 搜索引擎索引方式

Robots META标签定义网页搜索引擎索引方式,用来告诉搜索引擎ROBOTS如何访问、抓取、索引该页的内容。

通过使用meta的robots属性值可以为没有文件上传权限的用户提供/robots.txt文件的所有功能

robots语法

<meta name="robots" content="robotterms" />

robotterms是一组使用逗号(,)分割的值,通常有如下几种取值:none,noindex,nofollow,all,index和follow。

robots取值

none

搜索引擎将忽略此网页,等价于noindexnofollow

noindex

搜索引擎不索引此网页。

nofollow

搜索引擎不继续通过此网页的链接索引搜索其它的网页。

all

搜索引擎将索引此网页与继续通过此网页的链接索引,等价于indexfollow

index

搜索引擎索引此网页。

follow

搜索引擎继续通过此网页的链接索引搜索其它的网页。

Noarchive

禁止搜索引擎索缓存页面副本。

Nosnippet

禁止搜索引擎截取页面快照。

Noodp

禁止搜索引擎从DMOZ中获取页面描述作为搜索结果快照。

如果网页没有提供robots,搜索引擎认为网页的robots属性为all(index,follow);

搜索引擎对这些属性的支持情况

Robots value Google Yahoo! MSN / Live Ask
index Yes Yes Yes Yes
noindex Yes Yes Yes Yes
none Yes Doubt Doubt Yes
follow Yes Doubt Doubt Yes
nofollow Yes Yes Yes Yes
noarchive Yes Yes Yes Yes
nosnippet Yes No No No
noodp Yes Yes Yes No

针对谷歌GOOGLEBOT使用robots

可以将name的属性只定义为GOOGLEBOT标识为谷歌搜索引擎。

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

针对百度baiduspider使用robots

可以将name的属性只定义为baiduspider标识为百度搜索引擎。

<meta name="baiduspider" content="noarchive" />
除非注明,本博客文章均为原创,转载请以链接形式标明本文地址
原创文章如转载,请注明:转载自 任鸟飞网页设计 [ http://www.renniaofei.com/ ]
本文链接地址: http://www.renniaofei.com/code/meta-robots-search-engine-gif/
引用通告地址 Trackback URL:直接在本文链接地址后添加 trackback/
本文短网址: http://bit.ly/c0otIZ
任鸟飞

任鸟飞网页设计网创办者 主要关注网页设计,网站建设,图形图像设计。 Twitter @renniaofei QQ:29900684

留下评论

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: