Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Prevent indexing a part of a page?

  1. #1
    Trusted Guru Frinkky's Avatar
    Join Date
    Dec 2008
    Posts
    1,678
    Blog Entries
    1

    Default Prevent indexing a part of a page? 7 Jul 2010 @ 13.33

    Is it possible to prevent the indexing of a portion of a page, like an announcement? If so, how best to achieve this?

    Thanks.
      Reply With Quote

  2. #2
    Senior Member stu2000's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Default 7 Jul 2010 @ 14.06

    This may help:

    Tell Google to Not Index Certain Parts of Your Page ? Perishable Press

    quote
    <p>This is normal (X)HTML content that will be indexed by Google.</p>

    <!--googleoff: index-->

    <p>This (X)HTML content will NOT be indexed by Google.</p>

    <!--googleon: index>
    Not tested it though!
      Reply With Quote

  3. #3
    Trusted Guru Frinkky's Avatar
    Join Date
    Dec 2008
    Posts
    1,678
    Blog Entries
    1

    Default 7 Jul 2010 @ 14.21

    Perfect - thank you.
      Reply With Quote

  4. #4
    Senior Member stu2000's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Default 7 Jul 2010 @ 14.22

    Nooooooo problemo
      Reply With Quote

  5. #5
    Trusted Guru Frinkky's Avatar
    Join Date
    Dec 2008
    Posts
    1,678
    Blog Entries
    1

    Default 7 Jul 2010 @ 14.32

    Hmm, just read the whole article - apparently this applies to Google Search Appliance, rather than googlebot.

    I'll try adding the announcement content after the main content and position it with css. Or perhaps create an image on the fly to replace the text. Whatever, I will have to turn announcements off till I can sort this.
      Reply With Quote

  6. #6
    Senior Member stu2000's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Default 7 Jul 2010 @ 14.37

    nuts! lol

    does Google read the content within iFrames?

    If not you could put the announcements in a seperate page, set it for Google to not read the page with the announcements in, and then insert the announcements page into an iframe? Probably won't work, but thought I'd put it out there!
      Reply With Quote

  7. #7
    Senior Member CloudedVision's Avatar
    Join Date
    Jan 2009
    Posts
    824
    Blog Entries
    4

    Default 7 Jul 2010 @ 18.20

    A much better solution would be to use PHP to detect a bot: Insane Visions - Bot Detection with PHP Tutorial :: Premium PHP Scripts - AdaptCMS, AdaptBB

    (Just Google "PHP bot detection." There are a million tutorials)
    Last edited by CloudedVision; 7 Jul 2010 at @ 18.22.
      Reply With Quote

  8. #8
    Trusted Guru saltedm8's Avatar
    Join Date
    Jun 2011
    Posts
    1,969
    Blog Entries
    3

    Default 7 Jul 2010 @ 18.57

    lol.. I had a chat with jon about that earlier, I handed him a copy of that code that I had slightly customised as it did not work properly.. sorry, maybe I should have posted it.
      Reply With Quote

  9. #9
    Trusted Guru WelshStew's Avatar
    Join Date
    Dec 2008
    Posts
    2,555
    Blog Entries
    3

    Default 7 Jul 2010 @ 19.57

    That would be great if you wouldn't mind. Maybe even add it to the resource forum.
      Reply With Quote

  10. #10
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,081

    Default 8 Jul 2010 @ 00.01

    Nice share, never even knew this was possible
      Reply With Quote

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 23 Jan 2011, @ 21.34
  2. Internal Page Links vs External Page Links
    By Ol'Canuck in forum Just Starting Out - Help Me!
    Replies: 2
    Last Post: 29 Apr 2010, @ 18.17
  3. 404 page
    By sudhakararaog in forum PHP, ASP & Java
    Replies: 1
    Last Post: 30 Dec 2009, @ 00.04
  4. Sitemap.xml - The most Overrated Search Engine Indexing factor
    By angel54 in forum SEO (Search Engine Optimisation) & Search Engines
    Replies: 3
    Last Post: 15 Sep 2009, @ 10.37
  5. Indexing problem possibly
    By Michael in forum SEO (Search Engine Optimisation) & Search Engines
    Replies: 0
    Last Post: 14 Apr 2009, @ 11.41

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •