How To Edit Robots.txt File Of Your Blogger Blog

Google has recently added a new Search preferences setting in Blogger, in which one of the option is to edit Robots.txt file. Robots.txt file is one of the important file for SEO, it tells robots (spiders) to what content should it crawl, what it should not, where it can find contents, etc.

So if you want to take your blogging seriously and don’t want to move your blog from Blogger then this may help you in doing your blog Search Engine Optimization. To edit Robots.txt file

Note: – This post is only for those who knows a bit about robots.txt and SEO

  1. Go to Blogger in Draft dashboard
  2. From More option drop-down, select Settings
  3. Blogger - More option drop-down select Settings

  4. Then click on Search preferences from left column
  5. Now edit and enable Custom robots.txt option
  6. Type your own or pate the below lines their (if you don’t know what should be their)
  7. Sitemap: /feeds/posts/default?orderby=updated
    Sitemap: /atom.xml
    Sitemap: /atom.xml?redirect=false&start-index=1&max-results=500
    Sitemap: /atom.xml?redirect=false&start-index=501&max-results=500
    
    User-agent:  *
    Disallow: /search*
    Disallow: /feeds/*
    Disallow: *?*
    Allow: /search/label/*
    Allow: /
    
    User-agent: Mediapartners-Google
    Disallow:
  8. Then click on Save change button
  9. Blogger - Search preferences - Custom robots.txt

Now your robots.txt file has been updated, you can go and see by adding /robots.txt after your blog URL (e.g.: jajodia-saket.blogspot.com/robots.txt). Above lines will tell spiders where they can find sitemaps (if you are using the lines I mention above and have more than 1000 post in your blog then check this article on Blogger sitemap), not to follow search page, feeds and any URL which contain question mark (?), follow labels (or tags) and other pages and tells Google Ad bots to follow all pages. If you have any question or problem let me know.

More tutorials on Blogger new Search preferences settings page:
Description Meta Tag
Customize Design Of 404 Error Page
301 Redirect Any URL
Edit Robots.txt
Robots Header Meta Tags