How to Hide Div element from Google and Other Search Engines?

1 replies
  • SEO
  • |
I want to create a page in my site and there will be a iframe in a div element.
I want that page indexable in Google and other search engines but also want to hide iframe from search engines and other crawlers ..
How will I do that?
#div #element #engines #google #hide #search
Avatar of Unregistered
  • Profile picture of the author Hyder Alamgir
    You can place the source of the iframe in your robots.txt file

    For instance, if the 'src' of the iframe is /hidden-content/page.html, then add this to your robots.txt file:

    Disallow: /hidden-content/
    {{ DiscussionBoard.errors[11192789].message }}

Trending Topics