Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Noindex
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Noindexing part of a page == It is also possible to exclude part of a Web page, for example navigation text, from being indexed rather than the whole page. There are various techniques for doing this; it is possible to use several in combination. Google's main indexing spider, [[Googlebot]], is not known to recognize any of these techniques. === <noindex> tag === The Russian search engine [[Yandex]] introduced a new <nowiki><noindex></nowiki> tag which prevents indexing of the content between the tags. To allow the source code to validate, <nowiki><!--noindex--></nowiki> alternatively can be used:<ref>{{cite web |url=http://help.yandex.com/webmaster/controlling-robot/html.xml#noindex |title=Using HTML tags |work=webmaster β help |publisher=[[Yandex]] |at=Section: <noindex> tag |access-date=March 25, 2013}}</ref> <syntaxhighlight lang="html"> <p> Do index this text. <noindex>Don't index this text.</noindex> <!--noindex-->Don't index this text.<!--/noindex--> </p> </syntaxhighlight> Other [[Web crawler|indexing spider]]s also recognize the <nowiki><noindex></nowiki> tag, including [[Atomz]].<ref>{{cite web |url=https://center.atomz.com/center/help/?sp_topic=/Search/FAQs/General_Search#150 |title=General Search FAQ |year=2013 |work=Help |publisher=[[Atomz]] |at=Section: How do I exclude parts of my site from being searched? |access-date=March 23, 2013 |quote=Need to prevent parts of individual pages from being searched? If you want to exclude portions of a page from indexing, surround the text with <noindex> and </noindex> tags. This is useful, for example, if you want to exclude navigation text from searches. |archive-date=December 8, 2021 |archive-url=https://web.archive.org/web/20211208074738/https://center.atomz.com/center/help/?sp_topic=/Search/FAQs/General_Search#150 |url-status=dead }}{{registration required}}</ref> === microformat === There is a 2005 draft [[microformat]]s specification with the same functionality. The Robot Exclusion Profile looks for the attribute and value ''<nowiki>class="robots-noindex"</nowiki>'' in HTML tags:<ref name="microformat">{{cite web |url=http://microformats.org/wiki/robots-exclusion |title=Robot Exclusion Profile |last=Janes |first=Peter |date=June 18, 2005 |publisher=Microformats |access-date=March 24, 2013}}</ref> <syntaxhighlight lang="html"> <p>Do index this text.</p> <div class="robots-noindex">Don't index this text.</div> <span class="robots-noindex">Don't index this text.</span> <p class="robots-noindex">Don't index this text.</p> </syntaxhighlight> A combination of values is also possible,<ref name="microformat" /> for example: <syntaxhighlight lang="html"> <div class="robots-noindex robots-follow">Text.</div> </syntaxhighlight> === Yahoo! === In 2007, [[Yahoo!]] introduced similar functionality to the microformat into its spider. However, Yahoo!'s spider is incompatible in that it looks for the value ''<nowiki>class="robots-nocontent"</nowiki>'' and only this value:<ref>{{cite web |url=http://www.ysearchblog.com/2007/05/02/introducing-robots-nocontent-for-page-sections/ |title=Introducing Robots-Nocontent for Page Sections |last=Garg |first=Priyank |date=May 2, 2007 |work=Yahoo! Search Blog |publisher=[[Yahoo!]] |access-date=March 23, 2013 |archive-url=https://web.archive.org/web/20140820072720/http://www.ysearchblog.com/2007/05/02/introducing-robots-nocontent-for-page-sections/ |archive-date=August 20, 2014 |url-status=dead }}</ref> <syntaxhighlight lang="html"> <p>Do index this text.</p> <div class="robots-nocontent">Don't index this text.</div> <span class="robots-nocontent">Don't index this text.</span> <p class="robots-nocontent">Don't index this text.</p> </syntaxhighlight> === SharePoint === [[SharePoint]] 2010βs iFilter excludes content inside of a <nowiki><div></nowiki> tag with the attribute and value ''<nowiki>class="noindex"</nowiki>''. Inner <nowiki><div></nowiki>s were initially not excluded, but this may have changed. It is also unknown whether the attribute can be applied to tags other than <nowiki><div></nowiki>.<ref>{{cite web |url=https://blogs.msdn.microsoft.com/markarend/2010/06/07/control-search-indexing-crawling-within-a-page-with-noindex/ |title=Control Search Indexing (Crawling) Within a Page with Noindex |date=June 7, 2010 |website=Microsoft Developer |publisher=[[Microsoft]] |access-date=November 4, 2017 |url-status=live |archive-url=https://web.archive.org/web/20171104100854/https://blogs.msdn.microsoft.com/markarend/2010/06/07/control-search-indexing-crawling-within-a-page-with-noindex/ |archive-date=November 4, 2017}} </ref> <syntaxhighlight lang="html"> <p>Do index this text.</p> <div class="noindex">Don't index this text.</div> </syntaxhighlight> === Structured comments === ==== Google Search Appliance ==== The [[Google Search Appliance]] uses structured comments:<ref>{{cite web |url=https://developers.google.com/search-appliance/documentation/68/admin_crawl/Preparing |title=Administering Crawl: Preparing for a Crawl |date=August 23, 2012 |work=[[Google Search Appliance]] |publisher=Google Inc. |at=Section: Excluding Unwanted Text from the Index |access-date=March 23, 2013 |archive-url=https://web.archive.org/web/20121123112433/https://developers.google.com/search-appliance/documentation/68/admin_crawl/Preparing |archive-date=November 23, 2012}}</ref> <syntaxhighlight lang="html"> <p> Do index this text. <!--googleoff: all--> Don't index this text. <!--googleon: all--> </p> </syntaxhighlight> Other indexing spiders also use their own structured comments.<!-- including FreeFind.com, but that cannot be included as a <ref> because the website is on Wikipedia's banned list, and JRank.org -->
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)