1

The situation looks as followed:

  1. User includes Javascript snippet into his page.
  2. Javascript creates iFrame dynamically and appends it to page.
  3. iFrame has static content.

Is Google bot smart enough to crawl iFrame's static content?

3
1

Google isn't able to crawl iframe content under two circumstances:

  • the iframe source path isn't present as a clear path in any document, which can be crawled by Google
  • the javascript, which inserts iframe, starts acting on user action, like onClick.

If iframe source path is present anywhere in the source code, Googlebot will read it, recognize Aha! Looks like... a path to anything! Lets go and try to read it! So to make the iframe path unreadable for the Googlebot, it should be obfuscated by javascript.

Also, to achieve the goal, that Google isn't able to crawl the iframe content, the javascript should

  • obfuscate the iframe source path
  • on user action de-obfuscate and load it

In any other case Googlebot will crawl iframe content.

2
  • Thank you for your response. But I read that the Google bot is more powerful than you described: searchengineland.com/…. Now I am confused.
    – Amberlamps
    Nov 6 '15 at 13:56
  • "to achieve the goal" - it seems the OP wants to index the content, not hide it. The OP makes no mention of a "user action". I would assume that this is created on page load.
    – MrWhite
    Nov 6 '15 at 14:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.