Oct 5, 2016

Add Best Custom Robots.txt for Blogger | Advanced SEO Setting

Paramjot Singh

Here's one of the best setting for custom robots.txt for blogger. Robots.txt file helps you regarding SEO and also increase page views of your blog.

Best Custom Robots.txt for Blogger | Advanced SEO Setting - In my previous posts I have mentioned you about Custom Robots Header Tags for Blogger. If you have read that post, then I hope you guys are aware of its importance in search rankings. Today, I come with a very useful and must aware blogging term that is Robots.txt. In blogger it is known as Custom Robots.txt that means now you can customize this file according to your choice. In today’s tutorial, we will discuss this term in deep and come to know about its use and benefits. I will also tell you the better way to add best custom robots.txt file in blogger. So let's start the tutorial.

What is Robots.txt?

Robots.txt is a text file which contains few lines of simple code. It is saved on the website or blog’s server which instruct the web crawlers to how to index and crawl your blog in the search results. That means you can restrict any web page on your blog from web crawlers so that it can’t get indexed in search engines like your blog labels page, your demo page or any other pages that are not as important to get indexed. Always remember that search crawlers scan the robots.txt file before crawling any web page.

Each blog hosted on blogger have its default robots.txt file which is something look like this:

Explanation:

This code is divided into three sections. Let’s first study each of them after that we will learn how to add custom robots.txt file in Blogspot blogs.User-agent: Mediapartners-Google
This code is for Google Adsense robots which help them to serve better ads on your blog. Either you are using Google Adsense on your blog or not only leave it as it is.

User-agent: *
This is for all robots marked with an asterisk (*). In default settings our blog’s labels links are restricted to indexed by search crawlers that mean the web crawlers will not index our labels page links because of below code.

Disallow: /search
That means the links have keyword search just after the domain name will be ignored. See below example which is a link to label page called SEO.

http://www.example.blogspot.com/search/label/SEO

And if we remove Disallow: /search from the above code then crawlers will access our entire blog to index and crawl all of its content and web pages.

Disallow Particular Post

Now suppose if we want to exclude a particular post from indexing then we can add below lines in the code.

Disallow: /yyyy/mm/post-url.html

Here yyyy and mm refer to the publishing year and month of the post respectively. For example, if we have published a post in the year 2015 in the month of July then we have to use below format.

Disallow: /2015/07/post-url.html

To make this task easy, you can just copy the post URL and remove the blog name from the beginning.

Disallow Particular Page

If we need to disallow a particular page, then we can use the same method as above. Just copy the page URL and remove blog address from it which will something look like this:

Disallow: /p/page-url.html

Sitemap: http://example.blogspot.com/feeds/posts/default?orderby=UPDATED
This code refers to the sitemap of our blog. By adding sitemap link here, we are just optimizing our blog’s crawling rate. Means whenever the web crawlers scan our robots.txt file they will find a path to our sitemap where all the links of our published posts present. Web crawlers will find it easy to crawl all of our posts. Hence, there are better chances that web crawlers crawl all of our blog posts without ignoring a single one.

Note: This sitemap will only tell the web crawlers about the recent 25 posts. If you want to increase the number of link in your sitemap, then replace default sitemap with below one. It will work for first 500 recent posts.

How to Check Your Robots.txt File?

You can check this file on your blog by adding /robots.txt at last to your blog URL in the browser. Take a look at the below example for a demo.

http://www.mybloggerguides.com/robots.txt

Once you visit the robots.txt file URL, you will see the entire code which you are using in your custom robots.txt file. See below image.

Final Words!

This was the today’s complete tutorial on how to add custom robots.txt file in blogger. I try my best to make this tutorial as simple and easy as possible for using Blogging Beginners. But still, if you have any doubt or query then feel free to ask me in the comment Box.

Conclusion:

Don’t put any code in your custom robots.txt settings without knowing about the robots.txt file. Ask to me to resolve your queries. I’ll tell you everything in detail. Thanks, guys to read this tutorial. Do Share.

No comments:

Post a Comment

We’re eager to see your comment. If you have any query related to the topic then drop a comment below. We will help you out of sure. However, Please Keep in mind that all comments are moderated manually by our human reviewers. According to our comment policy all link are nofollow so keep in mind that never use links in comments, we consider link comments as a spam.