Skip to content
SEOLOG

Robots.txt Generator & Tester

This free robots.txt generator builds a robots.txt file for search engines and AI bots (GPTBot, ClaudeBot, PerplexityBot…). The test section shows whether an address is crawlable or blocked for the bot you choose.

Should search engines crawl the site?

One path per line. * matches anything, $ marks the end of the address.

Training bots collect your content to train models. If you block answer bots, tools like ChatGPT and Perplexity cannot cite your site.

robots.txt

  • Careful: this file closes your whole site to search engines.
  • The sitemap address must be absolute (with https://).
  • There is no sitemap line; adding one is recommended.
  • Do not block CSS and JS files; Google cannot render the page properly.
  • The file is ready. Upload it to the root of your site as robots.txt.

Paste the contents of your current file, or test the one you generated.

Matching rule: No rule matches this address; it is crawlable by default.

Robots.txt Generator & Tester is built by SEOLOG and offered free for you to use.

  • Completely free
  • No sign-up
  • What you enter stays in your browser

What does the robots.txt generator do?

Robots.txt is a plain text file in the root of your site that tells search engine bots which addresses they may crawl and which they may not. A single badly written line can close the whole site to search, so using a robots.txt generator is safer than writing the file by hand.

This free tool does two jobs. In the "Generate" section you choose the paths you do not want crawled, the exceptions, the sitemap address and the permission you give AI bots; the file is built instantly. In the "Test" section you check your current or new file against an address and a bot, and see which rule matches. This online robots.txt tester checks Googlebot, Bingbot and YandexBot as well as AI bots such as GPTBot, ClaudeBot and PerplexityBot one by one.

The robots.txt creator runs in your browser: the paths you type and the file you paste are not sent to our servers or stored. It is free and unlimited; build and test as many files as you like.

How to use the robots.txt generator

  1. Choose the crawl policy. Under "Should search engines crawl the site?" press "Yes, crawl it" or "No, block everything". The second closes the whole site; use it only for sites that are not ready to go live.
  2. Write the paths. Enter one path per line in "Paths you do not want crawled" and, if needed, fill in "Paths allowed as exceptions". If you use WordPress, the "Fill in ready-made WordPress rules" button adds the basic rules.
  3. Set the AI bots and the sitemap. Pick "Allow all of them", "Block training bots only" or "Block all AI bots" from the "AI bots" list. Type the full address, with https://, in "Sitemap address".
  4. Test it. Switch to the "Test" section, type an address in "Address or path to test" and choose the bot from the "Bot" list. The result reads "Crawlable" or "Blocked" and the matching rule is shown. To check the file on your site, paste its contents into "robots.txt to test".
  5. Upload the file. In the "Generate" section use "Download" or "Copy" and upload the file to the root of your site as robots.txt.

Frequently asked questions

If your answer is not here, write to us.

Is the robots.txt generator free?

Yes. The SEOLOG robots.txt generator and tester is completely free and asks for no account or email. There is no usage limit; build your file and test it as often as you need.

Where does the robots.txt file go?

Upload it to the root of the site so that it opens at yourdomain.com/robots.txt; bots ignore a file placed in a subfolder. Every subdomain (such as blog.yourdomain.com) needs its own robots.txt. WordPress serves a virtual robots.txt when no file exists; a real file uploaded to the root replaces it.

Does blocking a page in robots.txt remove it from Google?

No. Robots.txt blocks crawling, not indexing; an address that other sites link to can still appear in results without its content being read. To take a page out of the results, use a noindex tag and do not block that page in robots.txt, otherwise Google cannot see the tag.

Should I block AI bots?

That is your decision. Training bots such as GPTBot, ClaudeBot and Google-Extended collect your content to train models, while answer bots such as OAI-SearchBot and PerplexityBot read your site to cite it in their answers. If you block the answer bots, those tools cannot cite your site. Robots.txt is a request, and not every bot honours it.

If an address matches both an Allow and a Disallow rule, which one wins?

Google applies the rule with the longest, most specific path; if two rules are the same length, Allow wins. For example, with /wp-admin/ blocked, an Allow rule for /wp-admin/admin-ajax.php is longer, so that file can be crawled. The "Test" section shows the rule that matches your address using the same logic.

Similar free tools

All SEO Tools

Let us look at your whole site together

Tools fix pages one at a time. Leave your address and our free preliminary analysis will list the SEO work your site needs first.

Request a free SEO analysis
Call now