1

My website has links like:

<a href="messages.aspx">Messages<span>3</span></a>

Well google indexes these links as: Messages3

I have read some articles for preventing google from indexing some parts of the website like

<!--googleoff: index-->
<!--googleon: index>

tags but there are 2 problems:

1.This seems very odd to use lots of these tags and for a number

    <!--googleoff: index-->
      0
    <!--googleon: index>

2.I want to know is there a way or a rule that would work for all search engines like bing and yahoo too.

Stephen Ostermiller
  • 98,758
  • 18
  • 137
  • 361

1 Answers1

1

Best way is to use robots.txt. It works for all search engines.

As the content concerned:

Sometimes, there's a certain piece of content on a webpage (or a persistent piece of content throughout a site) that you'd prefer search engines didn't see. In this event, clever use of iframes can come in handy. The HTML Inline Frame Element () represents a nested browsing context, effectively embedding another HTML page into the current page.

For better understanding, here's the picture.

enter image description here

Josip Ivic
  • 3,878
  • 2
  • 22
  • 51