Turn Left - A weblog by InetSolution

Prevent Google from Indexing Portions of a Page

By Jason Sherrill
Posted on Feb 26, 2008

Today one of my clients asked whether it's possible to instruct Googlebot to ignore a portion of a web page when crawling and indexing his web site. This client shows product pricing on their web site, but would prefer that Google not index the prices so that they do not appear in search results. I was not aware of a directive that Googlebot would follow to ignore anything other than entire web sites, pages or folders, so I researched the topic and here's what I learned.

Yahoo supports the robot-nocontent tag, which allows you to instruct Yahoo's search robot to ignore portions of content on a web page. It works like this:

<p class="robots-nocontent">
Yahoo loves Google.
</p>

The "robots-nocontent" tag instructs Yahoo's search spider to ignore the content inside the <p> and </p> tags.

I've been unable to find evidence that any search robot other than Yahoo's supports this directive though. I also haven't found any similar directives that Google does support. So for now, it appears that the answer to my client's question is "No, you cannot hide specific content on a page from Google." Well, technically, we could do it, but since Google considers the method as cloaking, which is a search engine optimization no-no, I don't advise implementing these methods on a site where search rankings are important.

If anyone knows of a Google or Live alternative, please share.

Who is InetSolution?

Donovan - Creative Director
Justin - Lead Architect & Developer
Somer - Graphic Designer
Mac - Programmer
Larry - Programmer
Mosh - Programmer
Paul - Technical Sales Architect
Jay - Weekend & Holidays Sys Admin
Karen - Business Development & Client Care
Jason - Project Director

Our Services

Web Design/Development
We practice a user-centered development philosophy. We work with clients who place their customer's needs first. We need to know who will use your site and why.
Secure File Exchange
Turn your website into a state-of-the-art file exchange system, requiring only a web browser, username and a password.
eCommerce Web Development
We have experience, know-how and superior customer support to ensure that your store is profitable and that your investment with InetSolution earns a high return.
Disaster Recovery Hosting
We provide fully-managed SQL server database hosting for companies seeking a warm disaster recovery site.

Category Archives

About InetSolution

We make business websites profitable. We do it with usable design, solid programming and unique, methodical marketing.