有没有办法阻止Googlebot索引页面的某些部分? [英] Is there a way to prevent Googlebot from indexing certain parts of a page?

查看:185
本文介绍了有没有办法阻止Googlebot索引页面的某些部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能将指令微调到谷歌,以至于它会忽略页面的一部分,但仍会为其余部分编制索引?

Is it possible to fine-tune directives to Google to such an extent that it will ignore part of a page, yet still index the rest?

有一个我们遇到的几个不同的问题将由此得到帮助,例如:

There are a couple of different issues we've come across which would be helped by this, such as:


  • RSS feed / news ticker-type text on一个显示来自外部来源的内容的页面

  • 用户输入联系电话等详细信息,希望他们在网站上看到但是他们不是谷歌能够

我知道上述两种方法都可以通过其他技术解决(例如用JavaScript编写内容),但我想知道是否有人知道是否有更清洁Google已经提供了这个选项?

I'm aware that both of the above can be addressed via other techniques (such as writing the content with JavaScript), but am wondering if anyone knows if there's a cleaner option already available from Google?

我一直在对此进行一些挖掘并遇到了 googleon googleoff 标签,但这些似乎是Google Search Appliance独有的。

I've been doing some digging on this and came across mentions of googleon and googleoff tags, but these seem to be exclusive to Google Search Appliances.

有谁知道Googlebot会遵守哪些类似的标签?

Does anyone know if there's a similar set of tags to which Googlebot will adhere?

编辑:为了澄清一下,我不想走下隐藏/向Google提供不同内容的危险路线,这就是为什么我要看看是否有一种合法的方式来实现我想在这里做的事情。

Edit: Just to clarify, I don't want to go down the dangerous route of cloaking/serving up different content to Google, which is why I'm looking to see if there's a "legit" way of achieving what I'd like to do here.

推荐答案

你要求的是什么,不能真的完成,谷歌要么占用整个页面,要么不占用它。

What you're asking for, can't really be done, Google either takes the entire page, or none of it.

你可以做一些鬼鬼祟祟的技巧比如插入您不希望在iFrame中编入索引的页面部分,并使用robots.txt要求Google不要为该iFrame编制索引。

You could do some sneaky tricks though like insert the part of the page you don't want indexed in an iFrame and use robots.txt to ask Google not to index that iFrame.

这篇关于有没有办法阻止Googlebot索引页面的某些部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆