Free Robots.txt Generator — Control Google & AI Crawlers

Build a robots.txt file in seconds using simple toggles. Block specific pages from Google, control AI training crawlers, and add your sitemap automatically.

⚙️ Configure your robots.txt

Block from all crawlers
Block /admin/
Prevent crawlers from indexing admin pages
Block /login/
Keep login pages out of search results
Block /search/
Avoid duplicate content from search result pages
Block /cart/ and /checkout/
E-commerce: keep transactional pages private
Block /wp-content/uploads/
WordPress: prevent direct image indexing
Block URL parameters (?query=, &sort=)
Prevents Google indexing duplicate filtered pages
AI crawlers
Block AI training crawlers
Blocks GPTBot, ClaudeBot, PerplexityBot and others from using your content for AI training
Additional settings

Generated robots.txt

User-agent: * Allow: / Disallow: /admin/ Disallow: /login/ Disallow: /search/ Sitemap: https://yoursite.com/sitemap.xml

How to upload your robots.txt

  1. Click "Copy file" above
  2. Create a file named exactly robots.txt (lowercase)
  3. Upload it to your website's root directory — it must be accessible at yoursite.com/robots.txt
  4. In WordPress: use a plugin like RankMath or Yoast SEO to edit it directly
  5. Test it at yoursite.com/robots.txt in your browser

Allowing AI crawlers is just the first step

Letting ChatGPT and Gemini crawl your site doesn't mean they'll mention your brand. Citevis shows you exactly where you appear in AI answers — and what to change to show up more.

Check my AI visibility free →

Frequently asked questions

What is a robots.txt file?
A robots.txt file is a plain text file placed at the root of your website (yoursite.com/robots.txt) that tells search engine crawlers which pages they are allowed or not allowed to visit. It's the first file Google, Bing, and AI crawlers check before crawling your website.
Does robots.txt affect Google rankings?
Yes, indirectly. If you accidentally block important pages in robots.txt, Google can't crawl or index them — meaning they won't appear in search results at all. It's one of the most common technical SEO mistakes. Use this generator to make sure you're only blocking what you intend to.
Should I block AI crawlers like GPTBot?
It depends on your goals. If you want your brand to appear in ChatGPT, Gemini, and Perplexity answers, you should allow AI crawlers. If you're concerned about your content being used for AI model training without attribution, you can block training-specific bots. Note that blocking crawlers doesn't remove you from AI answers if your content is already indexed.
What's the difference between Disallow and noindex?
robots.txt Disallow prevents crawlers from visiting a page entirely. The noindex meta tag allows crawlers to visit a page but tells them not to include it in search results. If you Disallow a page, Google can't see the noindex tag — so use Disallow for pages you don't want crawled at all, and noindex for pages you want crawled but not shown in search.
Where do I upload my robots.txt file?
Your robots.txt must be placed in the root directory of your website, accessible at https://yoursite.com/robots.txt. In WordPress, plugins like RankMath and Yoast SEO let you edit it from the dashboard. For other platforms, upload via FTP or your hosting file manager.
Can I have multiple User-agent rules?
Yes. You can create separate rules for different crawlers. For example, you can allow Googlebot everywhere but block GPTBot from your entire site. This generator handles this automatically when you enable the AI crawler blocking option.