Hello, How can I notify the robots that a particular area in my webpage is not to be indexed? I have looked at: - the noindex tag, but this does not work with Google for parts of webpages. <noindex>Don't index this</noindex> Code (markup): - printing the text with JavaScript, but Google is capable of executing this now... document.write ("Don't index this"); Code (markup): Anyone has another idea? Thank you
It is possible you have two options, but both apply to the entire page/directory-only links can be nofollowed individually with a page that is "follow,index" (default): 1. create custom robots meta tags for the pages you dont want indexed/followed (the best solution) OR 2. dissallow in the robots.txt robots meta: Using robots.txt The following are valid robots meta content values:
You'd probably have to cloak part of the page you don't want indexed from search engine bots, but then you're also running a risk of that causing a problem since they frown on cloaking (for deceptive purposes, of course).
Even if they can read it, I'm not sure that they actually do. I use JavaScript to put a block of text at the top of my site, and it's not indexed anywhere in Google. If you really want to hide the text from spiders, then you could use PHP to write it (even dynamically) to an image file, and then display the image file instead.
Google spiders can execute jQuery, Prototype, and a few others, they can pull AJAX pages too as of mid-May