新的漫游器标记:indexifembedded
2022 年 1 月 21 日(星期五)
今天,我们推出了新的漫游器标记 indexifembedded
,便于您在内容被编入索引方面有更多选择。借助 indexifembedded
标记,您可以告知 Google:当您的内容通过 iframes
和类似 HTML 标记嵌入到其他网页中时,您仍希望系统将其编入索引(即使内容页使用了 noindex
标记)。
indexifembedded
标记解决了尤其影响媒体内容发布者的常见问题:尽管他们可能希望自己的内容在嵌入到第三方网页中时被编入索引,但他们并不一定希望自己网站上的媒体内容页被编入索引。由于他们不希望媒体内容页被编入索引,因此目前针对此类网页使用了 noindex
标记。不过,noindex
标记在系统编制索引期间会同时阻碍内容被嵌入到其他网页中。
只有使用了 noindex
的媒体内容页通过 iframe
或类似 HTML 标记(例如 object
)嵌入到其他网页中时,新的漫游器标记 indexifembedded
才能与 noindex
标记搭配使用。
例如,如果 podcast.host.example/playpage?podcast=12345
同时使用了 noindex
和 indexifembedded
标记,则表示 Google 可以在编制索引期间将该网页上托管的内容嵌入到 recipe.site.example/my-recipes.html
中。
若要让内容仅在嵌入到其他网页中时才被编入索引,请务必同时添加 indexifembedded
与 noindex
标记。例如:
<meta name="googlebot" content="noindex" />
<meta name="googlebot" content="indexifembedded" />
<!-- OR -->
<meta name="googlebot" content="noindex,indexifembedded" />
或者,您也可以在 HTTP 标头中指定此标记:
X-Robots-Tag: googlebot:noindex
X-Robots-Tag: googlebot:indexifembedded
...
OR
…
X-Robots-Tag: googlebot:noindex,indexifembedded
目前,只有 Google 支持 indexifembedded
标记。
希望这个新标记能对您有所帮助。如果您有任何疑问或意见,请通过 Twitter 和帮助论坛与我们联系。
发布者:Weizi Wang 和 Gary Illyes
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["Google introduces a new robots tag, `indexifembedded`, allowing content to be indexed when embedded on other sites, even if the original page has a `noindex` tag."],["This tag addresses the issue faced by media publishers who want their content indexed when embedded but not as standalone pages."],["`indexifembedded` should be used in conjunction with the `noindex` tag to enable indexing only when the content is embedded via iframes or similar HTML tags."],["The tag is currently supported by Google only and can be implemented in either the HTML `\u003cmeta\u003e` tag or the HTTP header."]]],["Google introduced the `indexifembedded` robots tag, designed to work with the `noindex` tag. When a page with `noindex` is embedded via `iframe` or similar tags, `indexifembedded` allows Google to index the content during indexing. This addresses media publishers' need to prevent indexing of their media pages while enabling indexing of embedded content on third-party sites. Implement it with `\u003cmeta\u003e` tags or HTTP headers, using `noindex` and `indexifembedded` together. Currently, only Google supports `indexifembedded`.\n"]]