Prevent parts of page to be indexed

Discussion in 'HTML & Website Design' started by NemoPlus, Jul 7, 2010.

  1. #1
    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
     
    NemoPlus, Jul 7, 2010 IP
  2. samb0057

    samb0057 Active Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #2
    I really doubt that's possible.
     
    samb0057, Jul 7, 2010 IP
  3. ValDeV

    ValDeV Member

    Messages:
    130
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Don't think it's exactly possible but rel="nofollow" makes the pagerank uneffected
     
    ValDeV, Jul 7, 2010 IP
  4. rive0108

    rive0108 Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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:
     
    rive0108, Jul 10, 2010 IP
  5. kposs

    kposs Member

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    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).
     
    kposs, Jul 10, 2010 IP
  6. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #6
    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.
     
    Kerosene, Jul 10, 2010 IP
  7. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Google spiders can execute jQuery, Prototype, and a few others, they can pull AJAX pages too as of mid-May
     
    krsix, Jul 10, 2010 IP