偷偷摸摸的 SEO 解决方案

发布于 2024-08-09 04:19:50 字数 96 浏览 9 评论 0原文

并不是真正的问题,而是一个问题。如果您可以区分谷歌机器人和浏览您网站的其他用户之间的区别,然后根据其中之一加载不同的内容,那么谷歌是否可以找到答案?毕竟,他们不会派人来目视检查。

not really a problem more of a question. If you could tell the difference between google bot and other users browsing your site, and then you load different content in depending if it is one or the other, is there anyway google could find out? After all, they don't send a human to visually check things.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

演多会厌 2024-08-16 04:19:50

你所说的这就是所谓的隐身。

他们最终会发现的——特别是如果你的竞争对手之一向他们通风报信——那么你就会被除名。

What you're talking about is called cloaking.

They will find out eventually - especially if one of your competitors tips them off - then you'll get delisted.

挖个坑埋了你 2024-08-16 04:19:50

Google 发送的“用户代理”标头与普通浏览器不同,因此您可以轻松地将其用作决定因素并将机器人请求路由到不同的页面。但是,您应该记住,在欺骗爬虫的军备竞赛中,他们可能比您先进得多。

具体来说,在尝试恶作剧之前,您可能应该先阅读此页面

编辑:实际上此页面更合适。

Google sends a different 'User-agent' header than a normal browser, so you can easily use that as the determining factor and route bot requests to a different page. However, you should bear in mind that they're probably a lot more advanced than you in the arms race to spoof their crawlers.

Specifically you should probably read this page before attempting shenanigans.

EDIT: actually this page is more apropos.

无所的.畏惧 2024-08-16 04:19:50

您能够判断的唯一方法是通过 HTTP 请求所经过的 IP 地址或通过其他 HTTP 请求信息(可能是用户代理)。

编辑:我刚刚搜索了用户代理并发现了以下有趣的网站。我从未使用过此信息,但这可能是您的解决方案:

http://www.useragentstring。 com/pages/Googlebot/

The only way you'd be able to tell is via the IP address the HTTP requests come through or through other HTTP Request information, probably the User-Agent.

Edit: I've just searched on User-Agent and found the following interesting site. I've never used this info, but this may be your solution:

http://www.useragentstring.com/pages/Googlebot/

灯下孤影 2024-08-16 04:19:50

Google 的机器人不能也不会运行 JavaScript,因此您可以做的一件事就是让页面的内容成为一件事,然后在加载时将其替换为 JavaScript。

拥有全 Flash 网站且不想被 Google 隐藏的人有时会使用此方法:
http://blog.deconcept.com/swfobject/

它基本上是一个 JavaScript 库,可以进行切换。

但它有问题
- 为了合法使用,这意味着您必须保持 Flash 和 HTML 代码同步。
- 对于任何未启用 JavaScript 的人来说,它将无法工作(他们将看到您为 Google 抓取工具准备的内容)。
- 正如其他人所指出的,如果您将其用于除了使网站的 HTML 与 Flash 内容相匹配之外的其他用途,并且 Google 一旦发现您将被永远驱逐。

但对于一个必须使用所有 Flash 但希望 Google 看到它的网站(并且没有最新版本的 Flash,这应该会抵消这一点),您可以使用它。我以前做过。

Google's bots can't and won't run JavaScript, so one thing you can do is have your page's contents be one thing and then on load replace it with JavaScript.

People who have all-Flash sites and don't want to be invisible to Google sometimes use this:
http://blog.deconcept.com/swfobject/

it's basically a JavaScript library which does the switcheroo.

But it has problems
- For legitimate usage it means you have to keep your Flash and HTML code in sync.
- For anyone who doesn't have JavaScript enabled it will not work (they'll see the content you intended for the Google crawler).
- As others have pointed out, if you use it for anything other than just making the HTML of your site match the Flash content and Google ever catches on you'll be banished pretty much forever.

But for a site where you have to use all Flash but want Google to see it (and don't have a recent version of Flash, which supposedly nullifies this) you can use it. I've done it before.

弱骨蛰伏 2024-08-16 04:19:50

谷歌让识别他们的机器人变得很容易,但他们也运营着一个庞大的人员网络,允许谷歌跟踪他们的搜索和检索的页面。这样,谷歌就可以识别为机器人显示特殊内容的网站,并将其从数据库中删除。

这让我想起那些认为自己开发了一种新的无法破解的加密算法的人,但他们不会告诉任何人该算法是什么,因为它是如此伟大。不幸的是,他们最终犯了无数其他人在他们之前犯过的同样的错误。

感谢您在构建代码之前公开提出问题。

Google makes it easy to identify their robot, but they also run a large network of people who allow Google to track their searches and the pages that they retrieve. This way Google can identify sites that display special content for the robot and drop them from the database.

This reminds me of the people who think that they have developed a new uncrackable encryption algorithm, but they won't tell anyone what the algorithm is because it is such a great one. Unfortunately, they end up making the same mistakes that countless others have made before them.

Kudos to you for asking the question openly before building the code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文