How to Add Custom Robots.txt File on Blogger – Full Guide

How to Add Robots.txt File on Blog: Hello friends, Today I’m going to tell you how to use the Robots.txt code in the blog. If you want privacy as well as your blogging, then it’s important to add robots.txt code.

How Does Robots.txt Work?

Suppose robots.txt is the security of your website. Now, whenever a user searches a topic related to our website in a search engine then the search engine comes to our website, then the security of your website i.e. robot.txt tells him that What is allowed to show on this website. In this way, Robots.txt file protects the privacy of our website.

How to Create a Robots.txt File for Your Blog?

There are many websites that make the robot.txt file for blog available on the internet but today, I am giving you the code of robots.txt file which is told by the blogger, if you want, you can see it by visiting the blogger help forum.

Also Read: How to Be a Professional Blogger: Brilliant Tips

User-agent: Media partners – Google

This is a Google Adsense robot if you use Adsense code in your blog, you can use it to hide your code from the search engine, if Adsense is not used, then this is not necessary for you.

User-agent:

This is for all users of your website, so keep it disallow so that the security of our blog remains.

Disallow: / search

We should Disallow this for our website.

Allow:

Here you can set what you want to show the search engine, If you let it be allowed, then it will be good.

Sitemap

This is most important, the sitemap gives the search engine the information about our website’s new post. When to search, how many URLs are there in which post, which is the most popular. Friends in blog Before adding the robot.txt file you have to create a sitemap for your blog.

Click here to create a sitemap for your blog. [su_button url=”http://ctrlq.org/blogger/” style=”glass” background=”#000000″]Click Here[/su_button]

Also Read: How To Submit Your Website/Blog on UC News

How to Add Robots.txt File on Blog?

 

Step: First

  • Go to the blogger.com website.
  • Then “Sign In” with your “Gmail Account”
  • Now go to “Settings” in Blog.
  • Click on ‘Search Preferences”.
  • Now click on “Edit” in front of Custom Robots.txt.

 

Step: Second

User-agent: Mediapartners-Google
 Disallow:
 User-agent:
 Disallow: /search
 Allow: /
 Sitemap: https://www.technicaltipsnazir.com/sitemap.xml

Copy this Code

Instead of https://www.technicaltipsnazir.com/sitemap.sample, add sitemap of your own website.

 

  • Tick on “Yes”
  • Paste the “Code” above here.
  • Now you have to click on “Save Changes”.

 

Now the robots.txt file has been added to your blog. Add this robots.txt file to your blog only if you do not want to publish anything from your blog.

 

Conclusion

So, friends, we talked to you about this article, about the How to Add a Robots.txt File to Blog – Full Guide. We hope you have liked this article. If you liked this article then please like it and share it. If you have any questions or suggestions in your mind that you want to give us, then you can tell us below and you can subscribe to our Newsletter for this type of latest article.

Thank you very much for visiting this website and giving your precious time to read this post.

2 thoughts on “How to Add Custom Robots.txt File on Blogger – Full Guide”

Leave a Comment

Share via
Copy link