robots.txt testerIs this URL open to bots?
Enter a URL and choose a bot, and we'll read your site's robots.txt file using Google's rules. We'll show on one screen whether the URL can be crawled, which line matches, any typos and the status of 24 bots. You can also paste your file and test it before publishing.
Using Google's rules
The longest rule matching the URL wins, and Allow takes precedence in a tie. The * and $ wildcards, groups merged for the same bot, and typos that Google tolerates are taken into account too.
The status code changes the result too
If robots.txt returns 404, everything can be crawled; if it returns 5xx, Google temporarily stops crawling the site entirely. We also check the file's size (500 KiB limit), content type and redirects.
Test before you publish
Edit your file in the “Paste robots.txt” tab and test any URL you like; no request is sent to the site. To create a file from scratch, use the robots.txt generator.
How to read the results
The report is ordered by importance, so start with the verdict at the top. Crawlable means the bot you chose may request this URL. Blocked has two possible causes: a rule in robots.txt matches the URL, or the file returns a server error or can't be reached at all, so Google treats the whole site as closed. Undetermined only appears when the file couldn't be read because it's larger than 5 MB. The sentence under the verdict gives the reason: which line matched, which group was applied, or that the group has no rule matching the URL.
The summary boxes
HTTP status is the response code of the robots.txt file itself, and it decides the outcome before any rule does. 401 and 403 also count as “no file”: Google never sees your rules and treats every URL as crawlable. 429, on the other hand, is handled like a 5xx and closes the entire site to crawling. The Groups / rules box shows how many User-agent groups and Allow/Disallow lines were read, the Problem lines box how many lines have spelling or syntax problems, and its second line how many Sitemap lines were found.
Line-numbered file view
The robots.txt panel shows your file with line numbers. The line that decides the verdict carries the “matching rule: allow” or “matching rule: block” tag, and the User-agent lines of the applied group carry the “applied group” tag. Tags such as “typo”, “missing colon”, “must start with /” and “full URL used” mark places where bots may misread a line or skip it entirely. The “ignored by Google”, “Yandex only” and “non-standard” tags, by contrast, mark directives that are harmless but have no effect in Google. The “Show rule” button takes you straight to the line that decided the verdict.
The status by bot table
The table tests the same URL separately for 24 bots. The Group column shows which group the bot applies: its own name, *, or a dash if there's no group at all. Some bots fall back on another group when they have none of their own: according to Apple's documentation, Applebot follows rules written for Googlebot, and YandexBot also reads a group written for Yandex. Tap a bot's name to rerun the test with that bot. When setting priorities, keep this in mind: a URL that is Blocked for Googlebot or Bingbot and that you want to appear in search is always a problem, whereas blocked model training bots are usually a deliberate choice.
Common problems and how to fix them
The site is live but Googlebot is still blocked
A Disallow: / line added during development was forgotten after launch; the Findings section shows the critical finding “Googlebot can't crawl the homepage”. Delete the line or list only the folders you want to close. If the test still shows the old content after you've changed the file, the server may be serving another copy: in WordPress, a physical robots.txt file in the root directory takes precedence over the virtual file generated by plugins. A CDN or caching plugin may also be holding on to the old file; clear the cache and run the test again.
robots.txt returns 5xx, 429 or 403
These codes usually come not from the file itself but from the layer in front of it: a rate limiter, a firewall, or a system that generates robots.txt through the application and returns 500 when the database fails. Serve the file statically without passing through the application, and keep it out of rate-limiting rules. In Nginx, this block serves the file straight from disk and returns 404 if it doesn't exist:
location = /robots.txt {
try_files $uri =404;
}
The response shown in the tool was given to Röntgen's request; your firewall may be giving Googlebot a different one. You can see the version Google last fetched and the status code it received in the robots.txt report in Search Console.
A web page opens at the robots.txt URL
In single-page applications (React, Vue), or on servers that send every unknown URL to the main template, /robots.txt returns HTML with a 200 code. The tool flags this as “An HTML page is returned instead of robots.txt”; since Google finds no valid lines, it doesn't apply your rules. Put the file in the static folder that goes into the build (public/ in most frameworks). If Nginx has a fallback rule such as try_files $uri /index.html;, a file that exists on disk is always served first.
A rule blocks more or less than you expected
robots.txt paths are compared as prefixes from the start of the URL, and they're case-sensitive. Disallow: /blog closes not only the blog folder but also /blog-haberleri and /blog.html; if you mean the folder, write /blog/. Disallow: /Admin/, on the other hand, doesn't block /admin/. With parameters, position matters: /*?renk= only matches when renk is the first parameter; if you want the parameter caught in any position, add a /*&renk= rule as well. When in doubt, try the same rule with several URLs in the “Paste robots.txt” tab.
Example: closing the tag archive blocks an article by mistake
The owner of ornek-site.com sees the “Blocked by robots.txt” status in Search Console for the new article /etiketler-rehberi/. The site's robots.txt file looks like this:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /etiket
Crawl-delay: 5
User-agent: GPTBot
Disallow: /
Sitemap: https://ornek-site.com/sitemap_index.xml
Testing the URL with Googlebot gives the verdict Blocked: the Disallow: /etiket rule on line 4 matches the URL, and the applied group is User-agent: * on line 1. The summary boxes show the 200 status, 2 groups and 4 rules, and 1 problem line; that line is Crawl-delay, tagged “ignored by Google”. In the status by bot table, all 24 bots are Blocked for this URL: GPTBot because of the Disallow: / in its own group, the others because of line 4.
- Find the cause. The rule was written to close the tag archive (such as
/etiket/seo/), but because it has no trailing slash it matches every URL that starts with “etiket”. - Try the fix before publishing. Press the “Edit and test” button; the file moves to the paste tab. Change line 4 to
Disallow: /etiket/and test both paths in turn:/etiket/seo/should come out Blocked and/etiketler-rehberi/Crawlable. - Decide on Crawl-delay. Google doesn't read this line; Bing follows it and makes at most one request every 5 seconds. If your server isn't under load, you can delete the line.
- Publish and verify. Upload the new file, repeat the test on the live site, and request indexing of the article from Search Console's URL Inspection tool. The “Validate” link in the Declared sitemaps panel opens the sitemap in the sitemap validator, where you can see whether any URLs blocked by robots.txt remain.
Frequently asked questions
Does robots.txt remove a page from Google?
No. robots.txt only blocks crawling; a blocked URL that gets links from other sites can appear in search results even without its content being read. To remove a page from the index, add noindex to it and remove the robots.txt block: Google can only see the noindex tag if it can crawl the page.
If Allow and Disallow conflict, which one applies?
Google applies the longest, that is, the most specific, rule matching the URL; if the lengths are equal, Allow wins. For example, with Disallow: /products/ and Allow: /products/sale together, /products/sale is crawled and the other product URLs aren't.
If I write a separate group for Googlebot, do the * rules still apply?
No. A bot applies only the group that names it, or the * group if it has no group of its own. If you've written a separate group for Googlebot, you need to copy the general rules there too. Googlebot-Image and Googlebot-News follow the Googlebot group if they have no group of their own.
When does my robots.txt change take effect?
Google usually caches the robots.txt file for up to 24 hours; in urgent cases, you can request a recrawl from the robots.txt report in Search Console. The file must be in the root directory, in plain text and UTF-8; each subdomain and protocol (http/https) uses its own robots.txt file.
Learn more about this topic: robots.txt guide · AI bots guide