Thread: Prevent indexing a part of a page?
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?
7 Jul 2010 @ 14.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 @ 14.21
7 Jul 2010 @ 14.22
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.
7 Jul 2010 @ 14.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 @ 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.
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.
7 Jul 2010 @ 19.57
That would be great if you wouldn't mind. Maybe even add it to the resource forum.
8 Jul 2010 @ 00.01
Nice share, never even knew this was possible
By ljackson in forum PHP, ASP & Java
Last Post: 23 Jan 2011, @ 21.34
By Ol'Canuck in forum Just Starting Out - Help Me!
Last Post: 29 Apr 2010, @ 18.17
By sudhakararaog in forum PHP, ASP & Java
Last Post: 30 Dec 2009, @ 00.04
By angel54 in forum SEO (Search Engine Optimisation) & Search Engines
Last Post: 15 Sep 2009, @ 10.37
By Michael in forum SEO (Search Engine Optimisation) & Search Engines
Last Post: 14 Apr 2009, @ 11.41 Tags for this Thread