【发布时间】:2010-11-29 14:04:17
【问题描述】:
我有一堆 ajaxified 链接,可以执行投票、投票、标记帖子等标准社区审核内容。
问题在于 googlebot 会抓取这些链接,然后投票赞成、反对并标记项目。
将其添加到 robots.txt 会阻止 googlebot 抓取这些链接吗?或者我还有什么需要做的吗?
User-agent: Googlebot
Disallow: /item/*/flag/
Disallow: /item/*/vote/
谢谢!
编辑:更改了发布方法,而 googlebot 仍在标记帖子。
语法是:
<a href="onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('blahblahblah'), dataType:'script', type:'post', url:'/item/flag/236?method=post'}); return false;">
有什么想法吗?
【问题讨论】:
标签: web-crawler robots.txt googlebot