Robots.txt asks well-behaved crawlers not to visit certain paths. It does not hide or protect pages — anything private still needs a password or a noindex tag.
Pick a starting template, adjust the rules for each crawler, add your sitemap, then copy or download the file and upload it to the root of your site (for example example.com/robots.txt).
What robots.txt is — and what it is not
Robots.txt is a short text file that tells crawlers which parts of a site they may visit. Reputable crawlers like Googlebot and Bingbot follow it. It is a request, not a lock: it does not stop people opening a page, and a blocked page can still appear in search if other sites link to it. To keep a page out of search use a noindex tag; to keep it private, put it behind a login.
The templates explained
- Allow everything — an empty Disallow rule, so crawlers may visit the whole site.
- WordPress — blocks the admin area but keeps
admin-ajax.phpopen, because some themes and plugins load content through it. - Block everything — for staging or test sites. Do not use it on a live site you want found.
- Block AI crawlers — keeps search engines allowed but asks known AI crawlers (GPTBot, Google-Extended, CCBot, ClaudeBot, PerplexityBot) to stay out. Crawler names change, so check each company’s documentation.
Common mistakes
- Leaving
Disallow: /from a staging site on the live site — the generator warns you about this. - Blocking CSS and JavaScript folders, which can stop Google seeing the page as visitors do.
- Forgetting paths are case-sensitive:
/Private/and/private/differ. - Expecting
Crawl-delayto work on Google — Googlebot ignores it.
How to use the tool step-by-step
Where do I put the file?
At the top level of your domain, /robots.txt. On WordPress many SEO plugins let you edit it from the dashboard; otherwise upload it with your host’s file manager.
How do I check it works?
Open yourdomain.com/robots.txt in a browser, then check the robots.txt report in Google Search Console.
Does blocking AI crawlers hurt my Google ranking?
No. Blocking GPTBot or CCBot does not affect Googlebot. Google-Extended only controls use in Google’s AI models, not normal search.
Is robots.txt a security feature?
No. It is a public request that polite bots follow. Protect private pages with a password, not robots.txt.
Should a WordPress site block /wp-admin/?
The common setup disallows /wp-admin/ but allows /wp-admin/admin-ajax.php, which some themes and plugins need. The WordPress template does this for you.