Thread: Prevent indexing a part of a page?
Prevent indexing a part of a page?
7 Jul 2010 @ 12.33
Is it possible to prevent the indexing of a portion of a page, like an announcement? If so, how best to achieve this?
7 Jul 2010 @ 13.06
This may help: Tell Google to Not Index Certain Parts of Your Page ? Perishable Press Not tested it though!
<p>This is normal (X)
content that will be indexed by Google.</p>
content will NOT be indexed by Google.</p>
7 Jul 2010 @ 13.21
7 Jul 2010 @ 13.22
7 Jul 2010 @ 13.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.
7 Jul 2010 @ 13.37
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!
7 Jul 2010 @ 17.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 @ 17.22.
7 Jul 2010 @ 17.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.
7 Jul 2010 @ 18.57
That would be great if you wouldn't mind. Maybe even add it to the resource forum.
7 Jul 2010 @ 23.01
Nice share, never even knew this was possible
By ljackson in forum PHP, ASP & Java
Last Post: 23 Jan 2011, @ 20.34
By Ol'Canuck in forum Just Starting Out - Help Me!
Last Post: 29 Apr 2010, @ 17.17
By sudhakararaog in forum PHP, ASP & Java
Last Post: 29 Dec 2009, @ 23.04
By angel54 in forum SEO (Search Engine Optimisation) & Search Engines
Last Post: 15 Sep 2009, @ 09.37
By Michael in forum SEO (Search Engine Optimisation) & Search Engines
Last Post: 14 Apr 2009, @ 10.41 Tags for this Thread