Free robots.txt checker
See a website's robots.txt, test any page against it, and find the line that is keeping Google out. Free, no sign-up.
How Google picks the rule
Google first picks the group of rules meant for it: a section naming Googlebot if there is one, otherwise the section for “*”. Within that group the longest matching rule wins, and when an Allow and a Disallow are equally long, Allow wins.
So “Disallow: /” followed by “Allow: /blog/” still lets Google crawl your blog. The order of the lines does not matter; their length does.
Blocking is not the same as hiding
robots.txt asks crawlers not to read a page. It does not remove the page from Google. A blocked address that other sites link to can still be listed, without a description.
To keep a page out of search results, let it be crawled and add a noindex tag. If you block it as well, Google cannot see the tag.
Questions
Does my website need a robots.txt file?
No. Without one, crawlers may read everything. It is still useful for naming your sitemap and for keeping crawlers out of pages with nothing to offer them, such as internal search results.
Where does the file have to be?
At the top of the site, for example https://yourwebsite.com/robots.txt. A file in a folder is ignored. Each subdomain needs its own file.
I fixed the file. When will Google notice?
Google usually refreshes its copy within about a day. You can ask for a fresh read in the robots.txt report in Search Console.
Can robots.txt protect private pages?
No. Anyone can read the file, and a crawler can ignore it. Put private pages behind a login.
Guides
- How long SEO takesRealistic expectations.
- Glossary of SEO wordsPlain meanings for the words WolfSEO uses.
- Why is my page not in Google?What "Crawled, currently not indexed" means and what helps.
- How Google sends people to you (the Search page)Clicks, impressions, click rate and position, explained.
- Prove a website is yoursThe four ways, and why it is needed.
More free tools
- Free SEO auditCheck any page for the basics Google reads, in plain English
- Domain Rating checkerSee any website's Domain Rating, free
- AI website analyzerAsk about a website and get what was checked and what to fix, in plain English
- Page speed testSee how fast a page loads on a phone or computer, and what to fix first
- AI crawler checkerSee whether ChatGPT, Claude, Perplexity and Google are allowed to read your pages
- Sitemap checkerFind your sitemap, count its pages and catch the ones that redirect or fail
- Redirect checkerFollow every 301 and 302, and check that all versions of your address join up
- Google snippet previewSee your title and description as a Google result before you publish