Guides · Search visibility

Free robots.txt generator

Choose what search engines may crawl, list the paths to keep them out of, add your sitemap and decide which of 14 AI crawlers may read the site. The file is checked as you type with the same robots.txt matching audibot's audit uses.

Everything runs in your browser. Nothing you type is sent anywhere.

Site
All crawlers (User-agent: *)
Sitemaps

Absolute https URLs. The first one is suggested from the hostname. The sitemap guide.

AI crawlers

Or set each one. A blocked agent gets its own group with Disallow: /; an allowed one follows the rules for all crawlers. Purposes are from each operator's documentation, linked.

Your robots.txt

It belongs at the root of the host, at https://example.com/robots.txt — not in a subfolder, where crawlers do not look for it.

At the root, for the audit's agent and two common ones:

Test a path

Allowed: Googlebot may crawl /.

Against the file above, with the rules audibot's audit applies: the most specific matching user-agent group, then the longest matching path, Allow winning ties.

Where it goes

nginx
Save it as robots.txt in the directory the server block’s root points at.
Apache
Save it as robots.txt in the DocumentRoot, often public_html.
Caddy
Save it in the directory root points at; file_server serves it.
Netlify
Put it in the publish directory, or in the folder your build copies there, such as public/.
Vercel
Put it in public/; files there are served from the root.
Next.js
App Router: save it as app/robots.txt, or return the same rules from app/robots.ts as a MetadataRoute.Robots object. Keep only one of the two.
WordPress
WordPress serves a virtual robots.txt when there is no file. Upload robots.txt to the WordPress root, next to wp-config.php, to replace it — or use your SEO plugin’s robots.txt editor, not both.
Astro
Put it in public/; Astro copies it to the root of the build.

Verify the deployed file

A wrong robots.txt can keep a whole site out of search. Once it is deployed, check what the live site serves. Each checker shows a stored result for a site audibot has already checked, or can run a full passive audit, which publishes a public report at /r/<host>. Your first audit needs no account.

What is robots.txt?

A plain-text file at /robots.txt that tells crawlers what not to crawl and where the sitemap is. Crawlers request it before anything else; without one, each logs a 404 and discovers pages on its own. An allow-everything file with a Sitemap: line is enough for most sites. The robots.txt guide.

Does robots.txt stop a page being indexed?

No. robots.txt asks crawlers not to crawl a path; it does not remove pages from search. To keep a page out of search results, mark it noindex in a robots meta tag or an X-Robots-Tag header — a crawler told to stay off the page cannot read that tag. The file is public, so a path listed in it is a path anyone can read. The noindex guide.

How do I block AI crawlers without leaving Google Search?

Block the AI agent tokens by name and leave User-agent: * allowing the site. Google-Extended controls Gemini training and grounding, not Google Search, so blocking it does not block Googlebot. Training crawlers, search bots and user-triggered fetchers each have their own token: blocking GPTBot does not block OAI-SearchBot. The "Block training, allow AI search" preset blocks the agents with documented training uses.The AI crawler guide.

Where does the sitemap line go?

Anywhere in the file, as an absolute URL: Sitemap: https://example.com/sitemap.xml. It does not belong to a user-agent group, so this generator writes it at the end. audibot's audit reads the firstSitemap: line, or /sitemap.xml if there is none. The sitemap guide.

Does every bot obey it?

No. robots.txt is a voluntary policy, not authentication or a guarantee of access, and it does not protect private content. User-triggered fetchers may ignore its rules; OpenAI and Perplexity document exceptions.The AI crawler guide links each operator's documentation.

Related tools

All free tools