Create a robots.txt file with custom crawler rules and your sitemap URL. Check which paths your rules allow or block, then copy or download the file. Free to use, with no account required.
* to target all bots.
Not all AI bots are the same, and most robots.txt tools treat them as one checkbox. Training, search and user-requested access serve different purposes. Review provider guidance before choosing a preset; allowing access does not guarantee citations or traffic.
Google retired its robots.txt Tester in December 2023, and the report that replaced it only shows the last fetched file for properties you own. This tester brings back what was lost: check any URL against any site's rules, and see exactly which line decides the outcome.
This tool does three jobs that usually need three separate tools. The Generate tab builds a properly formatted robots.txt file without writing any code — choose the bots you want to configure, add the paths to block or allow, and include your sitemap URL, with a live preview that updates as you type. The AI Crawlers tab turns the confusing world of GPTBot, ClaudeBot, PerplexityBot and Google-Extended into a set of deliberate choices, telling you in plain English what each block actually costs you. The Test & Validate tab checks any URL against any site's rules and shows you the exact line that decides the outcome.
The builder, the AI crawler panel and the rule matcher all run inside your browser — nothing you type is uploaded. The one exception is the "Load a live site's robots.txt" button: browsers are not allowed to read another domain's files directly, so that request passes through our server. Only the domain you enter is sent, and the fetched file is cached for five minutes.
Rule matching runs in your browser · Updated September 24, 2026
https://yourdomain.com/robots.txt and save a copy before replacing it. Your CMS or SEO plugin may already manage it.* for general rules, or add a separate user-agent block for a specific bot. Remove the sample /admin/ rule if it does not apply to your site.Generating or testing a file here does not change your website. Robots.txt controls crawling; it does not guarantee indexing or higher rankings.
Paste these rules into Test & Validate and choose Googlebot. This example blocks a folder while keeping one file in that folder crawlable.
User-agent: * Disallow: /drafts/ Allow: /drafts/public-example.html Sitemap: https://example.com/sitemap.xml
/drafts/unfinished.html: blocked by the folder rule./drafts/public-example.html: allowed because the matching Allow path is more specific./blog/my-post/: allowed because no Disallow rule matches it.These are crawl permissions, not privacy protections. Keep confidential drafts behind authentication. A crawler can still discover a blocked URL through links.
Configure separate rules for Googlebot, Bingbot, GPTBot, and any custom crawler.
See the final robots.txt format update in real time as you make changes.
Add one or more sitemap URLs so search engines can discover your content quickly.
Block GPTBot, ClaudeBot, PerplexityBot, CCBot and more — with a plain-English note on exactly what each block costs you.
Check whether a URL is crawlable and see the exact rule that decides it — the feature Google removed from Search Console in 2023.
Flags a stray Disallow: /, blocked CSS and JavaScript, missing sitemaps and directives Google stopped supporting.
Rules are built and matched locally. Only the "fetch a live site" button talks to our server, because browsers cannot read another domain's files.
Ask compliant crawlers not to fetch selected admin paths. Protect private pages with authentication.
Set a GPTBot rule for OpenAI training crawls. User-requested fetchers and search crawlers serve different purposes.
Disallow everything with a wildcard rule to prevent staging URLs from appearing in search.
Include your sitemap URL so Google and Bing discover new pages faster.
Allow Googlebot full access while blocking Bingbot from specific sections.
Block cart and checkout pages to focus crawl budget on product and category pages.
Robots.txt is a small plain-text file that lives in the root folder of your website, at an address like https://yourdomain.com/robots.txt. Its job is to tell search-engine crawlers which parts of your site they are welcome to visit and which parts they should leave alone. When a crawler such as Googlebot arrives, checking this file is usually the first thing it does.
The file follows the Robots Exclusion Protocol, a long-standing agreement that the major search engines respect. Each robots.txt file is built from one or more groups of rules. A group starts by naming a crawler with a User-agent line, then lists the paths that crawler may or may not request. It is a set of polite instructions rather than a lock, so it works best for guiding well-behaved bots, not for keeping secrets.
Before a crawler fetches your pages, it downloads your robots.txt file and reads the rules that apply to it. Each rule is a single line made up of a directive and a value. Here are the directives you will actually use:
* means every bot.Disallow: / blocks the whole site.A crawler matches paths from left to right, and the most specific rule wins. In the example below, the whole /private/ folder is closed off, but one file inside it stays open.
User-agent: * Disallow: /private/ Allow: /private/public-notice.html Sitemap: https://yourdomain.com/sitemap.xml
One line worth remembering: robots.txt controls crawling, not indexing. It asks a bot not to fetch a page. If you need a page kept out of search results, use a noindex meta tag and keep the page crawlable. Read our guide to meta robots versus robots.txt to choose the right instruction.
Search engines give every site a rough crawl budget — the number of pages they will fetch in a given period. A tidy robots.txt file helps them spend that budget on the pages you actually want ranked. This matters more as a site grows and picks up thin or duplicate URLs that add nothing to search results.
Used carefully, robots.txt is a quiet SEO win. Used carelessly, a single wrong line can hide your best pages, so it pays to check your rules before you publish them.
Training crawlers, search crawlers and user-requested fetchers have different roles. Review each provider's current documentation before applying a preset. Allowing a bot does not guarantee citations or referral traffic, and user-requested fetches may be treated differently from automatic crawling.
Robots.txt is voluntary, not an access-control system. Rules affect compliant future requests; they do not remove previously collected content.
Most robots.txt problems come from a few repeat offenders. Watch out for these:
Disallow: / blocks crawling and can prevent Google from reading updated content. It does not reliably remove indexed URLs./wp-includes/ or asset folders can hurt how your pages are understood.noindex and allow Google to crawl it so it can read the instruction./Folder is not /folder. A trailing slash also changes the match.Real files are usually short. Here are the patterns you will reach for most often — copy one as a starting point and adjust the paths to match your site.
Allow every crawler everywhereUser-agent: * Disallow:Block crawling of the whole site (not a substitute for staging authentication)
User-agent: * Disallow: /Block a few folders but allow the rest
User-agent: * Disallow: /cart/ Disallow: /checkout/ Disallow: /search/ Sitemap: https://yourdomain.com/sitemap.xmlAllow Googlebot, block a specific bot
User-agent: Googlebot Disallow: User-agent: AhrefsBot Disallow: /Keep an AI scraper out of your content
User-agent: GPTBot Disallow: / User-agent: * Disallow:
Before replacing your site's file, follow our WordPress robots.txt guide to understand virtual files, crawler rules and sitemap settings.
WordPress creates a virtual robots.txt automatically, so a fresh install already has one even if there is no file on the server. It is basic, but for most sites it is enough. If you want more control, you can replace it with your own rules. A sensible starting point for a WordPress site looks like this:
robots.txt for WordPressUser-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Sitemap: https://yourdomain.com/wp-sitemap.xml
Notice that /wp-admin/ is blocked while admin-ajax.php stays open, because some themes and plugins rely on it to load content. Avoid blocking /wp-includes/ or your uploads folder — doing so can stop Google from rendering your pages properly. If you use an SEO plugin like Yoast, Rank Math or All in One SEO, each one has a built-in robots.txt editor, so you can paste these rules straight into the dashboard without touching FTP.
Sitemap line helps search engines find everything worth crawling.Once you have generated your rules above, getting the file live takes only a minute. The exact steps depend on how you manage your site:
robots.txt — all lowercase, nothing extra.public_html) so it opens at yourdomain.com/robots.txt.yourdomain.com/robots.txt in your browser. If your rules show up, you are done.Google retired its robots.txt Tester in December 2023. The report that replaced it, inside Search Console, only shows the last version Google fetched for a property you have verified — it dropped the interactive "does this URL match these rules" check entirely, and you can no longer test another site's file at all. That is the gap the Test & Validate tab above fills.
Testing takes seconds and catches mistakes before search engines act on them. A few ways to check your file:
yourdomain.com/robots.txt and read the rules. It should return the file, not a 404.For a walkthrough of the file format and common rules, start with our robots.txt guide. Use Google's documentation below to check how Google interprets those rules.
This tester is a preview of rule matching, not a live Google crawl. Confirm important changes with Search Console after publishing.
A robots.txt file sits at the root of your website and tells search-engine crawlers which pages or sections they are allowed or not allowed to visit. It follows the Robots Exclusion Standard and is read by bots before they crawl your site.
Well-behaved crawlers like Googlebot and Bingbot respect robots.txt rules. However, it is not a security measure. Malicious bots may ignore the file entirely. Use server-level access controls or password protection for truly private content.
The asterisk * is a wildcard that matches all crawlers. Rules under this block apply to every bot that reads the file, unless a more specific user-agent block overrides them.
Place the file at the root of your domain, for example https://yourdomain.com/robots.txt. It must be accessible at exactly that URL for crawlers to find it.
Yes. Add a dedicated block that starts with User-agent: Googlebot and give it its own Allow and Disallow lines. Google's crawler follows the most specific matching block, so those rules apply to Googlebot while your User-agent: * block still covers every other crawler. This tool lets you add per-crawler blocks so you can, for example, let Googlebot into a folder you block for everyone else.
Build your rules with the generator above, then in your Blogger dashboard go to Settings → Crawlers and indexing → Enable custom robots.txt, and paste the generated file. A custom robots.txt for Blogger (Blogspot) lets you control which pages Googlebot crawls, block search and label pages, and point crawlers to your sitemap for faster, cleaner indexing.
WordPress serves a virtual robots.txt by default. To use a custom one, generate your rules here and either upload a robots.txt file to your site root via FTP, or paste the rules into your SEO plugin — Yoast, Rank Math and AIOSEO all include a robots.txt editor. This gives you full control over crawling rules and sitemap discovery for your WordPress site.
No. A Disallow rule only asks a crawler not to fetch the page. If other sites link to that URL, it can still show up in results, often without a description. To keep a page out of search, add a noindex meta tag and make sure the page is not blocked so Google can actually read the noindex.
Crawlers cache the file, so changes are not picked up instantly — Google typically refreshes it within about a day. Because of this, always confirm your new version is live and give it a little time before assuming a rule has taken effect. Google also reads only the first 500KB of the file, which is far more than a normal robots.txt needs.
Robots.txt works at the site level and controls crawling — whether a bot may request a URL at all. A meta robots tag (or the X-Robots-Tag header) works at the page level and controls indexing — whether a page may appear in search. Use robots.txt to manage crawl budget, and use noindex when you specifically want a page kept out of results.
It depends which part of ChatGPT you mean, because OpenAI runs three separate bots. GPTBot collects content to train models. OAI-SearchBot indexes pages so ChatGPT search can link to them. ChatGPT-User fetches a page live when someone asks about that URL. Blocking GPTBot keeps you out of training data while leaving your ChatGPT citations and referral traffic intact — that is what most people actually want. Blocking all three removes you from ChatGPT entirely. Use the AI Crawlers tab above to pick deliberately.
No. Google-Extended is not a crawler and has no role in Search. It is a robots.txt token that controls whether content Googlebot has already fetched may be used to train and ground Gemini. Google states that blocking it does not affect how a site is crawled, indexed or ranked in Google Search. It is the lowest-risk AI block available, which is why the "Block training, keep answer engines" preset includes it.
There is no single right answer, but the useful distinction is what a bot does with your content. Training and search-related agents serve different purposes. Blocking a search crawler may limit discovery in that service, while allowing it does not guarantee a citation. Check the provider documentation for the specific agent before changing its rules. Publishers who sell access to their archive tend to block training. Sites that want reach tend to keep the answer engines open.
The major ones say they do, and there is reasonable evidence that OpenAI, Anthropic, Google, Apple and Perplexity honour it. But robots.txt is a request, not a technical barrier — a bot that ignores it faces nothing stopping it, and some crawlers have been accused of doing exactly that. Treat robots.txt as the polite, standard way to state your position. If content genuinely must not be taken, put it behind a login or paywall rather than a crawl rule.
Open the Test & Validate tab above, paste your rules or fetch a live domain, enter the URLs you want to check one per line, and choose which crawler to test as. Each URL comes back allowed or blocked along with the exact directive and line number that decided it. The matching follows Google's specification: user-agent groups are matched by longest name, then the longest matching path wins, and when an Allow and a Disallow tie, Allow wins.
Yes. Every robots.txt file is public by design. Enter any domain in the Test & Validate tab and the tool loads that site's live file, audits it for problems and shows you which AI crawlers it currently blocks. It is a quick way to see how competitors handle crawl budget and AI access. Google's own Search Console cannot do this — it only shows files for properties you have verified.
Google retired the standalone robots.txt Tester in December 2023 as part of deprecating the last of the old Search Console tools. It was replaced by a robots.txt report that lists the files Google fetched for your verified property and any errors it hit, but that report does not let you test a URL against a set of rules, and it cannot look at a site you do not own. The tester above restores both of those abilities.
Written by the team that builds these tools — browse every ToolBrainy guide.
Free on Google Play
Enjoy our tools faster and more conveniently with the ToolBrainy app.