Why Blogger Users need this
Blogger gives you one text box for a custom robots.txt, and whatever you type there replaces the default file completely. Nobody warns you that a single stray line can tell Google to skip every post. Many owners reach that box after searching for "blogger posts not indexed" or "custom robots header tags blogger", and they arrive worried, ready to paste anything that looks official. The risk runs deeper than one box. The robots header tags panel can mark archive, search and label pages as noindex, and hiding by tag can quietly remove every post carrying the tags you picked. Blogs moved to a custom domain have also reported new posts going uncrawled, which leaves you guessing whether your own file is the cause. The Robots.txt Generator gives Blogger users a clean starting point: you enter a Sitemap URL, list the paths to keep out of crawling, and choose a default policy. It writes one User-agent: * group in correct order, ready to copy. It cannot see your blog or test the result, so treat its output as a draft you check before saving.
Blogger Users specific guidance
Fill the three fields first
Type your full sitemap address into the Sitemap URL field, for example https://yourblog.blogspot.com/sitemap.xml with your own subdomain. In the Disallow paths box, enter /search on its own line; that covers label and search result pages, which is where most duplicate listings on a Blogger blog come from. Leave Default policy on Allow all robots. Choosing Block all robots writes Disallow: / and ignores your path lines, so never pick it on a live blog. The result does not prove your posts can be crawled: the generator does not read your blog, check that a path exists or know that the site runs on Blogger.
Paste it under Crawlers and indexing
In Blogger open Settings, scroll to Crawlers and indexing, and switch on Enable custom robots.txt. Before pasting, copy the current contents into a note, because your text fully replaces the default file. Paste the generated block, save, then open yourblog.blogspot.com/robots.txt in a new tab and read it line by line. If your text appears, Blogger saved it. That only proves the file is published, not that every post URL is allowed. Run one recent post address through the Robots.txt Tester to see whether any rule matches it.
Keep header tags separate and fix in order
Enable custom robots header tags is a different switch in the same settings area, and the generator does not touch it. If a post is missing from search, work in this order: robots.txt first, then the header tags for home, archive and search, post and page, then the sitemap and any custom domain redirects. Open one missing post, view its source, and look for a robots meta tag containing noindex. Then paste the URL into Search Console URL Inspection. A clean robots.txt does not explain a missing post, because noindex, a domain move or reduced crawling can each cause it.
Example scenarios
1. Keeping label pages out of a food blog
- Situation
- Illustrative example: a recipe blog with about 180 posts and 35 labels notices Google listing label pages such as /search/label/soups next to the recipes themselves, splitting attention between the two.
- Input
- Sitemap URL:
https://example.blogspot.com/sitemap.xmlDisallow paths:/searchDefault policy: Allow all robots - Reading the result
- The output would be User-agent: *, Disallow: /search, then the Sitemap line. Posts under paths like /2026/03/lentil-soup.html stay open, while label and search URLs are no longer crawled. It does not remove label pages already known to Google.
2. Block all robots left on after a redesign
- Situation
- Illustrative example: during a theme change an owner chose Block all robots to keep half-finished pages away from crawlers, pasted the result into Crawlers and indexing, and forgot about it for three weeks while publishing 12 new posts.
- Input
- Sitemap URL:
https://example.blogspot.com/sitemap.xmlDisallow paths:/searchDefault policy: Block all robots - Reading the result
- The output would be User-agent: * and Disallow: / only, plus the Sitemap line; the /search path is ignored. Every post URL is disallowed, so the 12 new posts would not be crawled. Switching back to Allow all robots and regenerating gives a safe file again.
3. Sitemap line after a custom domain move
- Situation
- Illustrative example: a travel blogger with 140 posts moves from a blogspot address to a www custom domain and wants robots.txt to point at the new sitemap while still excluding search pages.
- Input
- Sitemap URL:
https://www.example.com/sitemap.xmlDisallow paths:/searchDefault policy: Allow all robots - Reading the result
- The output would be a single group with Disallow: /search and the new Sitemap line, three lines in total. Open that sitemap address in a browser before saving; if it does not load, the line points crawlers at none of the 140 posts. The file cannot confirm the domain redirects correctly.
Common mistakes
- Leaving Block all robots selected. It writes Disallow: / and discards your path list, which shuts crawlers out of every post. Check the Default policy field before you copy anything.
- Pasting without saving the old contents. A custom robots.txt fully replaces Blogger's default file. Copy what is already in the box into a note so you can roll back.
- Hiding pages by tag and forgetting the side effect. In the custom robots header tags panel, hiding by tag can hide every post and page carrying the selected tags. Prefer the page-type options for archive and search.
- Typing extra lines by hand and trusting them. Allow lines, crawl-delay or a second bot group added under the generated block are not checked by the generator. Test the final file before relying on it.
- Using a sitemap URL for the wrong address. After a custom domain move, a Sitemap line still pointing at the old blogspot address sends crawlers to a redirect or a dead end. Use the live domain, in its www form.
Frequently asked questions
How do I add a custom robots.txt in Blogger?
Open Settings, find Crawlers and indexing, and turn on Enable custom robots.txt. A text box appears; paste your generated block there and save. Build the text first in the Robots.txt Generator so you are not typing directives from memory. Copy the existing contents into a note before replacing them, since your text fully replaces Blogger's default file. Afterwards open your blog address followed by /robots.txt to confirm the saved text is what crawlers actually receive.
Will a custom robots.txt fix my Blogger posts not indexed?
Rarely on its own. The file only controls crawling, and Blogger's default file already leaves posts open. Posts go missing for other reasons: a noindex set through custom robots header tags, a recent move to a custom domain, or Google simply crawling the blog less often. Use the generator to rule out a blocking rule, then inspect one missing post in Search Console. Nothing in a robots.txt can promise that a post gets indexed.
How do I noindex label pages on Blogger?
Two different mechanisms exist. Entering /search in the generator's Disallow field stops crawlers from fetching label and search result pages, but that is crawl control, not a noindex instruction, and a blocked URL can still be listed if other pages link to it. A true noindex comes from Enable custom robots header tags, where you set options for archive and search pages. Choose deliberately, and never hide by tag unless you accept losing every post that carries it.
Does a Blogger blog need Allow lines or a crawl-delay?
Not for a normal blog. Allow all robots with a short Disallow list already leaves posts open. The generator writes only Disallow lines and a Sitemap line inside one User-agent: * group, so it does not produce Allow lines, crawl-delay or a separate group for another bot. If you want any of those, type them by hand underneath, and remember that a hand-added line is not checked by the generator, so test the file afterwards.
Can I use the generator for my Blogspot custom domain?
Yes, because it only builds text. Put your real sitemap address in the Sitemap URL field, using the custom domain once it is live, for example https://www.example.com/sitemap.xml. Blogger does not support naked domains for custom domains, so use the www version, and open the sitemap address in a browser first. The generator cannot confirm that the domain resolves, that the sitemap loads or that Blogger accepts the file.
Reference: The Blogger Help page on managing blog settings confirms that custom robots.txt content replaces the default file used by search engines.