×
Wednesday, May 1, 2024

Technical SEO testing: How Googlebot handles iframes - Search Engine Land

Last updated Friday, September 30, 2022 06:00 ET , Source: NewsService

Earlier this year at SMX Advanced, I presented results from our Peak Ace test lab. These tests shed some light on several technical implementation points and how Googlebot would deal with them.

One of my favorite tests examined Google’s indexing of iFramed URLs and their content. In my SMX Advanced presentation, I touched on various scenarios that may lead Google to index the content inside an iFrame, while “assigning” that content to its parent URL.

The parent URL can, in some instances, rank for content that only exists in the iFramed URL and not in the parent URL.

Naturally, this excited people – and all sorts of follow-up questions arose. Here are a few of them with my answers.

In the iFrame test, was the iFramed content coming from the same domain or a different one?

My example showed two URLs that live on the same domain: domain.com/test.html would iFrame domain.com/tobeframedA.html, so that test.html could rank for content that only exists in tobeframedA.html.

The same also works for externaldomain.com/tobeframedB.html – which can still cause test.html to rank for content only present in tobeframedB.html, as well as for iFrames residing on subdomains. We tested every combination we could think of and concluded that it made no difference where the iFrame content was hosted.

If you want to prevent someone from loading (and ranking for) your content in an iFrame, it would be a good idea to look into the X-Frame-Options Header. This indicates whether a browser should...



Read Full Story: https://searchengineland.com/how-googlebot-handles-iframes-388243

Your content is great. However, if any of the content contained herein violates any rights of yours, including those of copyright, please contact us immediately by e-mail at media[@]kissrpr.com.