เราอยู่ใน LinkedIn แล้วตอนนี้: หากต้องการข่าวสารและแหล่งข้อมูลจาก Google Search เกี่ยวกับการทำให้เว็บไซต์ของคุณค้นพบได้ โปรด
ติดตามเราใน LinkedIn
แท็ก robots ใหม่: indexifembedded
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วันศุกร์ที่ 21 มกราคม 2022
วันนี้เราจะเปิดตัวแท็ก robots ใหม่ indexifembedded
ที่ให้คุณควบคุมได้มากขึ้นว่าจะให้จัดทำดัชนีเนื้อหาของคุณเมื่อใด เมื่อใช้แท็ก indexifembedded
คุณจะบอก Google ได้ว่ายังคงต้องการให้จัดทำดัชนีเนื้อหาของคุณอยู่เมื่อมีการฝังเนื้อหาผ่าน iframes
และแท็ก HTML ที่คล้ายกันในหน้าอื่นๆ แม้ว่าหน้าเนื้อหาจะมีแท็ก noindex
อยู่ก็ตาม
แท็ก indexifembedded
ช่วยแก้ปัญหาที่พบได้ทั่วไปซึ่งส่งผลต่อผู้เผยแพร่สื่อโดยเฉพาะ เนื่องจากว่า แม้ผู้เผยแพร่อาจต้องการให้จัดทำดัชนีเนื้อหาเมื่อมีการฝังเนื้อหาในหน้าของบุคคลที่สาม แต่ก็ไม่ได้ต้องการให้จัดทำดัชนีหน้าสื่อจากหน้านั้นเองเสมอไป เนื่องจากผู้เผยแพร่ไม่ต้องการให้จัดทำดัชนีหน้าสื่อ ปัจจุบันจึงใช้แท็ก noindex
ในหน้าดังกล่าว อย่างไรก็ตาม แท็ก noindex
ยังป้องกันไม่ให้มีการฝังเนื้อหาในหน้าอื่นๆ ระหว่างการจัดทำดัชนีด้วย
แท็ก robots ใหม่ indexifembedded
ทำงานร่วมกับแท็ก noindex
เฉพาะเมื่อหน้าที่มี noindex
ฝังในหน้าอื่นผ่าน iframe
หรือแท็ก HTML ที่คล้ายกัน เช่น object
ตัวอย่างเช่น หาก 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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
[null,null,[],[[["\u003cp\u003eGoogle introduces a new robots tag, \u003ccode\u003eindexifembedded\u003c/code\u003e, allowing content to be indexed when embedded on other sites, even if the original page has a \u003ccode\u003enoindex\u003c/code\u003e tag.\u003c/p\u003e\n"],["\u003cp\u003eThis tag addresses the issue faced by media publishers who want their content indexed when embedded but not as standalone pages.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eindexifembedded\u003c/code\u003e should be used in conjunction with the \u003ccode\u003enoindex\u003c/code\u003e tag to enable indexing only when the content is embedded via iframes or similar HTML tags.\u003c/p\u003e\n"],["\u003cp\u003eThe tag is currently supported by Google only and can be implemented in either the HTML \u003ccode\u003e<meta>\u003c/code\u003e tag or the HTTP header.\u003c/p\u003e\n"]]],["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"],null,["# New robots tag: indexifembedded\n\nFriday, January 21, 2022\n\n\nToday, we're introducing a new robots tag,\n[`indexifembedded`](/search/docs/crawling-indexing/robots-meta-tag#indexifembedded),\nthat brings you more control over when your content is indexed. With the\n`indexifembedded` tag, you can tell Google you'd still like your content indexed when\nit's embedded through\n[`iframes`](https://developer.mozilla.org/docs/Web/HTML/Element/iframe)\nand similar HTML tags in other pages, even when the content page has the `noindex` tag.\n\n\nThe `indexifembedded` tag addresses a common issue that especially affects media\npublishers: while they may want their content indexed when it's embedded on third-party pages,\nthey don't necessarily want their media pages indexed on their own. Because they don't want the\nmedia pages indexed, they currently use a `noindex` tag in such pages. However, the\n`noindex` tag also prevents embedding the content in other pages during indexing.\n\n\nThe new robots tag, `indexifembedded`, works in combination with the\n`noindex` tag only when the page with `noindex` is embedded into another\npage through an `iframe` or similar HTML tag, like\n[`object`](https://developer.mozilla.org/docs/Web/HTML/Element/object).\nFor example, if\n`podcast.host.example/playpage?podcast=12345` has both the `noindex` and\n`indexifembedded` tag, it means Google can embed the content hosted on that page in\n`recipe.site.example/my-recipes.html` during indexing.\n\n\nTo enable your content to be indexed only when it's embedded on other pages, make sure to add\n`indexifembedded` in combination with the `noindex` tag. For example: \n\n```ecl\n\u003cmeta name=\"googlebot\" content=\"noindex\" /\u003e\n\u003cmeta name=\"googlebot\" content=\"indexifembedded\" /\u003e\n\u003c!-- OR --\u003e\n\u003cmeta name=\"googlebot\" content=\"noindex,indexifembedded\" /\u003e\n```\n\n\nAlternatively, you can specify the tag in the HTTP header: \n\n```\nX-Robots-Tag: googlebot:noindex\nX-Robots-Tag: googlebot:indexifembedded\n...\nOR\n…\nX-Robots-Tag: googlebot:noindex,indexifembedded\n```\n\nPresently, only Google supports the `indexifembedded` tag.\n\n\nWe hope you find this new tag useful. If you have questions or comments, find us on\n[Twitter](https://twitter.com/googlesearchc) and in our\n[Help Forums](https://support.google.com/webmasters/community).\n\n\nPosted by [Weizi Wang](https://www.linkedin.com/in/weizi-wang-2a32ab111/) and [Gary Illyes](https://garyillyes.com/+)"]]