Skip to content
WikiPoka
  • Blog
  • Monetization
  • Blogger
  • WordPress
  • SEO
  • Course
WikiPoka
Home » Blog » Blogger » How to Add a Custom Robots.txt File in Blogger {Updated}

How to Add a Custom Robots.txt File in Blogger {Updated}

Editorial StaffByEditorial Staff Updated onAugust 20, 2024

Robots.txt file is crucial to index a website on search engines. It instructs how to crawl and index web pages. Blogger has a default robots.txt file and it also allows you to customize it according to your need. Using a custom robots.txt file is essential if you are serious about optimizing your site for search engines. In this tutorial, I will show you how to add a custom robots.txt file in blogger.

Table of Contents

Toggle
  • What is a Robots.txt File?
  • Key Components of a Robots.txt File
  • How to Add a Custom Robots.txt File in Blogger
  • How to Check the Robots.txt File in Blogger
  • How to Disallow Specific Content
  • Final Thoughts

What is a Robots.txt File?

A robots.txt file is a simple text file located in the root directory of a site. It contains the instructions for web crawlers. These instructions guide search engine bots on how to crawl and index a website. By using a custom robots.txt file in a blogger site, you can restrict bots from accessing specific pages.

Key Components of a Robots.txt File

Understanding the following parts of a robots.txt file will help you to make a custom robots.txt file for your site.

User-agent: Media partners-Google

This line is essential if you are running Google AdSense ads on your blog. It ensures that Google can deliver relevant ads to your site. It is best to leave this line intact even if you are not using AdSense.

User-agent: *

This line marked with an asterisk (*) applies to all robots. It serves as a catch-all for general instructions.

Disallow: /search

The above “Disallow” directive prevents search engines from indexing web pages that contain search query results. It can be beneficial if you don’t want these pages to appear in search engines.

Allow: /

The above “Allow” directive instructs search engines to crawl and index your blog’s homepage.

Sitemap: https://example.com/sitemap.xml

Including your sitemap in the robots.txt file helps search crawlers to easily locate and index your blog content.

How to Add a Custom Robots.txt File in Blogger

Follow the below steps to add a custom robots.txt file to your blogger site:

1. Log in to your blogger dashboard.

2. In the left sidebar, click on the “Settings” tab.

3. Scroll down and find the “Crawlers and indexing” section.

4. Enable the “Custom Robots.txt” option.

5. After enabling the Custom robots.txt option, a text box will appear to paste your robots.txt file code.

6. Click on the “Save” to save your changes.

That’s it! You have successfully added a custom robots.txt file to your blogger blog.

How to Check the Robots.txt File in Blogger

Follow the steps below to check the robots.txt file in blogger site:

1. Open a browser such as Chrome or Firefox.

2. Enter your blog’s URL in the address bar and put “/robots.txt” after the url.

3. Press Enter to access your robots.txt file.

For example, if your blog’s URL is “http://example.blogspot.com“ then you have to type “http://example.blogspot.com/robots.txt“ in the address bar and hit enter to access the robots.txt file.

How to Disallow Specific Content

If you want to prevent some posts or pages from being indexed by search engines then follow the steps below:

Note: Be careful with Disallow directives, any misconfiguration can prevent search engines from indexing your entire site.

To disallow a specific post:

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

Replace “yyyy/mm/my-first-post.html” with the url slug of the post you want to block.

To disallow a particular page:

Disallow: /p/page-url.html

Replace “p/page-url.html” with the URL slug of the page you want to prevent from indexing.

Final Thoughts

Customizing the default blogger robots.txt file is easy. But always remember robots.txt is a very sensitive file. A properly configured robots file can improve your blog’s visibility on search engines. And any misconfiguration can block search engine crawlers from accessing your website.

WikiPoka made a robots.txt file generator for blogger sites to simplify the process of making a custom robots.txt file. So, don’t forget to try this amazing tool.

If you found this article helpful, please share it with your fellow bloggers. And if you have any questions regarding this tutorial then ask me in the comments section.

Editorial Staff
Editorial Staff

The Editorial Staff at WikiPoka is a team of dedicated Blogger experts who have been creating blogging tutorials since 2020, establishing WikiPoka as the top free resource site in the world of blogging.

Facebook X Instagram

About WikiPoka

We have been helping individuals build successful blogs and online businesses since 2020. Our support has empowered countless bloggers, marketers and solopreneurs to bring their ideas to life and achieve real success in the digital world.

Facebook X Instagram

Site Links

  • About us
  • Contact us
  • Privacy Policy
  • Terms of Service
  • FTC Disclosure
  • Write for us

Free Tools

  • Robots.txt Generator

Resources

  • Best News WordPress Themes
  • Best FREE Blogger Templates

Copyright © 2020-2025 WikiPoka. All Rights Reserved.

We value your privacy

We use cookies to enhance your browsing experience, serve personalized ads or content and analyze our traffic. By clicking "Accept", you consent to our use of cookies.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}
Scroll to top
  • Blog
  • Monetization
  • Blogger
  • WordPress
  • SEO
  • Course
Copy link
CopyCopied
Search