1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How To Tell Google to Not Index Certain Parts of Your Webpage?

Discussion in 'Search Engine Optimization' started by ChetanGlobalRank, Aug 25, 2015.

  1. #1
    How we can block some part of content of a webpage from indexing?
     
    ChetanGlobalRank, Aug 25, 2015 IP
  2. pnp4all

    pnp4all Well-Known Member

    Messages:
    160
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    103
    #2
    You can use Robots.txt to disallow search engine from crawling. (you need to place this robots.txt file in your root dir of website : example.com/robots.txt & content of the file is explained below)

    Disawllow indexing of a specific folder from all search engine bots.


    User-agent: *
    Disallow: /folder/​

    Disallow Googlebot from indexing of a folder, except for allowing the indexing of one file in that folder

    User-agent: Googlebot
    Disallow: /folder1/
    Allow: /folder1/myfile.html
    You can also use the meta tags :
    • When you block URLs from being indexed in Google via robots.txt, they may still show those pages as URL only listings in their search results. A better solution for completely blocking the index of a particular page is to use a robots noindex meta tag on a per page bases. You can tell them to not index a page, or to not index a page and to not follow outbound links by inserting either of the following code bits in the HTML head of your document that you do not want indexed.
      • <meta name="robots" content="noindex"> <-- the page is not indexed, but links may be followed
      • <meta name="robots" content="noindex,nofollow"> <-- the page is not indexed & the links are not followed.
    Please note that if you do both: block the search engines in robots.txt and via the meta tags, then the robots.txt command is the primary driver, as they may not crawl the page to see the meta tags, so the URL may still appear in the search results listed URL-only.
     
    pnp4all, Aug 26, 2015 IP
  3. ChetanGlobalRank

    ChetanGlobalRank Active Member

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    83
    #3
    I am not talking about about a page or folder. I am talking about specific content on a web page. Let's sat a paragraph on a WebPage.
     
    ChetanGlobalRank, Aug 28, 2015 IP
  4. WebTenet Solutions

    WebTenet Solutions Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    Use this, hope this will help you better.
    <meta name="robots" content="noindex,nofollow"> <-- the page is not indexed & the links are not followed.
     
    WebTenet Solutions, Aug 28, 2015 IP
  5. ChetanGlobalRank

    ChetanGlobalRank Active Member

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    83
    #5
    This will deindex a whole webpage. What I asked is how I can prevent certain area say a div tag, or a paragraph of content on a webpage from indexing. Not a whole web page.
     
    ChetanGlobalRank, Aug 28, 2015 IP
  6. dblane4

    dblane4 Member

    Messages:
    27
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #6
    <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>
    Code (markup):
    Full Article Here: https://perishablepress.com/tell-google-to-not-index-certain-parts-of-your-page/
     
    dblane4, Aug 28, 2015 IP