Robots META标签的写法
刚才在点石的博客上看到一篇文章,下载模板需注意的几个问题,说到现在下载的部分模板可能存在着nofollow的问题提醒大家注意,因为不太清楚其作用,特意在搜索了下,百度百科告诉我是这样的:
Robots META标签中没有大小写之分,name="Robots"表示所有的搜索引擎,可以针对某个具体搜索引擎写为name="BaiduSpider"。 content部分有四个指令选项:
index、noindex、follow、nofollow,指令间以“,”分隔。
index指令告诉搜索机器人抓取该页面;
follow 指令表示搜索机器人可以沿着该页面上的链接继续抓取下去;
Robots Meta标签的缺省值是index和follow,只有inktomi除外,对于它,缺省值是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">
其中
<meta name="robots" content="index,follow">可以写成<meta name="robots" content="all">;
<meta name="robots" content="noindex,nofollow">可以写成<meta name="robots" content="none">
目前看来,绝大多数的搜索引擎机器人都遵守robots.txt的规则,而对于Robots META标签,目前支持的并不多,但是正在逐渐增加,如著名搜索引擎GOOGLE就完全支持,而且GOOGLE还增加了一个指令“archive”,可以限制GOOGLE是否保留网页快照。例如:
<meta name="googlebot" content="index,follow,noarchive">
表示抓取该站点中页面并沿着页面中链接抓取,但是不在GOOLGE上保留该页面的网页快照。
另外就是还有隐藏层的问题,也就是可以通过margin的负数值,来使得在模板上留下链接而不被人发觉,这也是需要注意的。

