Adsense and SEO Friendly Custom Robots.txt for Blogger Blog

Adsense and SEO Friendly Custom Robots.txt for Blogger Blog

Robots.txt contains the guidelines or rules for the bot-crawlers about how they will crawl and index your website or blog. Blogger allows to set some very basic SEO settings very easily from the dashboard. One of them is setting a custom robots.txt for your blogger.

When a robot search engine crawler is visiting a page or website, robots.txt is the first thing it looks for is the robots.txt file. As a Blogger user you now have the option to control what the search engine crawlers should follow and index from your website or blog.

Every blogger blog has a default robots.txt but with advanced changes in blogger you can change it according to your needs. In this post, you will know about the default robots.txt of blogger, how to add or edit a custom robots.txt for your blogger blog and some useful examples of robots.txt with an adsense friendly one. So let's get started.

Default Custom Robots.txt of Blogger Blog

Every time you create a blog in blogger a default robots.txt is created and until you change it by the setting is dashboard it remains same.
User-agent: Mediapartners-Google
Disallow: 

User-agent: *
Disallow: /search
Allow: /

Sitemap: http://yourblogslink.blogspot.com/feeds/posts/default?orderby=UPDATED

It is same for each blog and it is adsense friendly. If this is able to satisfy your SEO need for the blog that you do not require to replace it by adding a custom one in by dashboard settings.

How to Add Custom Robots.txt in your Blogger Blog

Follow these instructions below;
    1. Go to your blogger dashboard > Settings > Search Preferences > Crawling and Indexing.
    2. Click 'Custom robots.txt' > click 'yes'.
    3. Paste you custom robots.txt. (An example is given below)
    4. Click 'Save changes' to save the custom robots.txt.
    How to Add Custom Robots.txt in Blogger

    That's the way to insert or edit custom robots.txt. Now let's see how to write a custom robots.txt for blogger.

      A Proper Custom Robots.txt in your Blogger Blog

      The following example is a proper robots.txt for your blogger.
      # robots.txt of mysite.blogspot.com thanks to techinfoknow.com
      User-agent: Mediapartners-Google
      Disallow:
      User-agent: *
      Disallow: /search
      Disallow: /p/*
      Disallow: /view/*
      Disallow: /?m=1
      Disallow: /?m=0
      Disallow: /*?m=1
      Disallow: /*?m=0
      Allow: /
      Sitemap: http://yourblogslink.blogspot.com/feeds/posts/default?orderby=UPDATED
      Sitemap: http://yourblogslink.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=500

      The above example is an adsense friendly custom robots.txt for your blogger. Now we will explain what each line means here and what more you could add to your custom robots.txt.

      Tips for Writing a Custom Robots.txt for Blogger Blog

      • # robots.txt of mysite.blogspot.com thanks to techinfoknow.com
        This a comment line. You can add more and this will not affect you sites SEO or robots crawling what so ever. I suggest you to keep this line on if this post is helping you.
      • User-agent: Mediapartners-Google
        Disallow: 

        These lines are only for the adsense crawler. If you are or want to display adsense ads; this line allows the adsense crawler to visit all the pages of your site as per the adsense guideline. If it is not required you can simply remove them from the robots.txt. Then the adsense crawler will follow the instruction you have set for all the crawlers.
      • User-agent: *
        This is used for all the crawlers (except ones for which a separate rule is set, here the adsense crawler) and all instructions are written below it.
      • Disallow: /search
        This line indicates that any page with /search in the URL will not be crawled and indexed by the crawler. These line is very important for making your blog SEO friendly as it stops search engines to stop indexing label, search query, archive pages. Because they are not a unique page or URL and also to avoiding duplicate content.
      • Disallow: /p/*
        To block robots to crawl the pages for your blog. But if you want your pages to be indexed by crawler then just delete this particular line.
      • Disallow: /view/*
        Stops crawling of the blogger's %%% links. If you are using %%% views then just remove this line and if you are not using it them don't remove the line.
      • Disallow: /?m=1
        Disallow: /?m=0
        Disallow: /*?m=1
        Disallow: /*?m=0

        These lines are here to stop robots crawling of mobile redirect pages. If you do not use them, you might see your blogs links in mobile search results have ?m=1 or ?m=0 with them. They are necessary to avoid the duplicate pages problem. If you are not facing these problems or if you don't need them you can remove them.
      • Allow: /
        After you adder the instructions for restricting crawling, these line tells the robots that other links in these blog are free to crawl and index.
      • Sitemap: http://yourblogslink.blogspot.com/feeds/posts/default?orderby=UPDATED
        Sitemap: http://yourblogslink.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=500
        These lines basically indicates the links to you blog's site map(s). Replaceyourblogslink.blogspot.com with your blog's URL. If you are using a custom dommain in your blogger blog, then use that URL.
       

      News tecH Design by Insight © 2009