大网数据广告活动
网站运营与故障问答

How do Google and Yahoo fetch content for pages behind a paywall or registration wall?

· 52CE 我爱测

How do Google and Yahoo fetch content for pages that are behind a paywall or registration wall? I noticed that search results can show content that is not visible publicly without a paid or registered account, including in the pa…

问题原文

原帖链接 · Marc F · CC BY-SA 4.0

How do Google and Yahoo fetch content for pages that are behind a paywall or registration wall? I noticed that search results can show content that is not visible publicly without a paid or registered account, including in the page source and meta codes.

已采纳解答

原帖链接 · Maximillian Laumeister · CC BY-SA 4.0

For Google to be able to fetch content from a paywalled site, that site's server software needs to be configured to serve up that content for free when it detects that the visitor is Googlebot.

In other words, when normal visitors visit the site, the server gives them the paywall, but when the Google crawler visits the site, the server gives it the full article.

How does the server know whether a visitor is Googlebot or not? The naive way is to check the visitor's user agent to see if the visitor identifies itself as "Googlebot" (or "Googlebot-News"), but then people can get through to your paywalled content by spoofing their identity (which is a trick that worked for surprisingly many years to bypass paywalls on a lot of sites).

As more users are using browser extensions to spoof their user agents to bypass paywalls, websites have started using a more reliable method to detect Googlebot - to check the visitor's IP address against Google's official list of IP addresses that Googlebot resides at. Checking this list is done over DNS by using a couple of DNS lookups. Google provides more details on this process in their article Verifying Googlebot and other Google crawlers.

If you want to make paywalled content accessible to Google, also be sure to use the proper structured data so that Google doesn't get it confused with cloaking, which is against Google guidelines. In practice, unless you're developing your own website, there will probably be a plugin for whatever CMS you're using that does all this for you.

Regarding Yahoo, the Yahoo search engine and crawler was discontinued several years ago. Nowadays Yahoo Search is just a frontend for Bing, and I can't find any resources on how Bing handles paywalled content.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2021-11-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。