How to create a robots.txt file
Choose a preset or add your own rules. Paths go one per line, and the tool writes the file in the format crawlers expect: one User-agent group per crawler, followed by Allow, Disallow and an optional Sitemap line. Download it and upload it to the root of your domain.
What robots.txt can and cannot do
- It controls crawling, not indexing. A disallowed URL can still be indexed without content if it is linked from elsewhere. Use
noindexfor that. - It is public. Anyone can read it, so never list secret paths here.
- It is voluntary. Reputable crawlers follow it; bad actors ignore it.
WordPress robots.txt
A sensible WordPress file blocks /wp-admin/, keeps admin-ajax.php reachable because themes and plugins use it on the front end, and points to your XML sitemap. The WordPress preset sets this up.
Blocking AI crawlers
Tick the crawlers you want to keep out. Blocking Google-Extended opts your content out of Gemini training without affecting Google Search. If you want your pages cited in AI answers, do the opposite and allow the search-oriented bots such as OAI-SearchBot and PerplexityBot.