Robots META标签定义网页搜索引擎索引方式,用来告诉搜索引擎ROBOTS如何访问、抓取、索引该页的内容。
通过使用meta的robots属性值可以为没有文件上传权限的用户提供/robots.txt文件的所有功能
robots语法
<meta name="robots" content="robotterms" />
robotterms是一组使用逗号(,)分割的值,通常有如下几种取值:none,noindex,nofollow,all,index和follow。
robots取值
none
搜索引擎将忽略此网页,等价于noindex,nofollow。
noindex
搜索引擎不索引此网页。
nofollow
搜索引擎不继续通过此网页的链接索引搜索其它的网页。
all
搜索引擎将索引此网页与继续通过此网页的链接索引,等价于index,follow。
index
搜索引擎索引此网页。
follow
搜索引擎继续通过此网页的链接索引搜索其它的网页。
Noarchive
禁止搜索引擎索缓存页面副本。
Nosnippet
禁止搜索引擎截取页面快照。
Noodp
禁止搜索引擎从DMOZ中获取页面描述作为搜索结果快照。
如果网页没有提供robots,搜索引擎认为网页的robots属性为all(index,follow);
搜索引擎对这些属性的支持情况
| Robots value | 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



