TechCoff Tools › SEO Tools › Robots.txt Generator
Robots.txt Generator
Create a valid, search-engine-friendly robots.txt file in under a minute. Pick a preset or build your own rules for Googlebot, Bingbot and AI crawlers — then copy or download the finished file. Free, no signup, nothing is uploaded.
✓ 100% Free
✓ WordPress & WooCommerce presets
✓ Block AI crawlers (GPTBot, ClaudeBot)
✓ Built-in URL tester
✓ Runs entirely in your browser
What is a robots.txt file?
Robots.txt is a small plain-text file that lives in the root of your website and gives instructions to web crawlers — Googlebot, Bingbot, social media scrapers and AI crawlers — about which parts of your site they may crawl. It follows the Robots Exclusion Protocol and is the very first file a well-behaved bot requests when it visits your domain.
Used well, a robots.txt file keeps crawl budget focused on pages that matter, hides thin or private areas like admin screens, carts and search-result pages, and points bots straight to your sitemap. Used badly — one wrong Disallow: / line — it can remove your entire site from Google. That's why generating and testing the file carefully, instead of typing it by hand, is worth the two minutes.
Robots.txt is not a security tool
Disallowed pages can still be visited by anyone who knows the URL, and bad bots simply ignore the file. Never list secret folders or files in robots.txt — the file itself is public, so it can actually reveal the locations you're trying to hide. Protect private content with passwords or server rules instead.
Frequently asked questions
What is a robots.txt file?
It's a plain text file in your website's root folder (yoursite.com/robots.txt) that tells search engine crawlers which pages and folders they may or may not crawl. Bots like Googlebot check it before crawling anything else on your site.
Where do I upload my robots.txt file?
In the root directory of your domain, so it loads at yoursite.com/robots.txt. On WordPress, you can use your SEO plugin (Rank Math → File Editor, or Yoast), your hosting file manager, or FTP.
Does Disallow remove a page from Google?
Not reliably. Disallow stops crawling, but a page with external links can still appear in results as a bare URL. To remove a page from the index, let Google crawl it with a noindex tag, or protect it with a password.
What is the best robots.txt for WordPress?
Allow everything except the admin area, keep admin-ajax.php reachable, and link your sitemap: that's exactly what the WordPress preset above generates.
Can I stop ChatGPT and other AI bots from using my content?
You can ask them to stay out by adding groups for GPTBot, ClaudeBot, CCBot and Google-Extended with Disallow: / — the "Block AI crawlers" preset does this in one click. Reputable AI crawlers honour it; it won't stop scrapers that ignore the protocol.
How do I check if my robots.txt is valid?
Generate your file here, run a few URLs through the tester above, then after uploading, verify it in Google Search Console → Settings → robots.txt tester, which shows Google's own view of your file.
Do I even need a robots.txt file?
Small sites can rank fine without one, but having a correct file avoids 404s in crawler logs, protects your crawl budget, and gives you control the day you need it. Every site larger than a handful of pages benefits.