Security & SEO · ROBOTS

robots.txt Generator & Search / AI Crawler Policy Builder

Generate a launch-ready robots.txt with one-click presets for public SEO sites, AI training opt-outs (GPTBot, CCBot, ClaudeBot), AdSense Mediapartners access, and staging lockouts.

✓ 100% Browser-Local · Zero Upload Reviewed: 2026-11-26

Initializing local browser workspace...

Configure Search Engine & AdSense Crawling Correctly Before Launch

A single misplaced Disallow: / left over from staging can silently wipe an entire website out of Google Search and trigger automatic Google AdSense rejections. Generating a clean, explicit robots.txt guarantees crawlers discover your sitemap while avoiding private paths.

  • One-click launch presets: Allow All + Sitemap, Allow Search / Block AI Training, and Staging Lockout
  • Dedicated toggle ensuring Mediapartners-Google (Google AdSense crawler) is explicitly allowed
  • Granular AI scraper toggles for GPTBot, CCBot (Common Crawl), and ClaudeBot
  • Custom Disallow path list and absolute Sitemap XML directive emission
  • Direct robots.txt file download and clipboard copy for immediate root deployment
  • Runs completely offline inside your browser without probing external domains

Step-by-Step Guide

  1. Pick a starting preset (Allow All + Sitemap for normal launches, or Allow Search / Block AI Training).
  2. Update the Sitemap XML URL to your exact production HTTPS domain (e.g. https://yourdomain.com/sitemap.xml).
  3. List any private paths to exclude (such as /admin/ or /search?*) and verify Allow Mediapartners-Google stays checked for AdSense.
  4. Click Download robots.txt and place it at the exact root of your web server (/robots.txt).

Fatal robots.txt Mistakes That Destroy Organic Traffic

Forgetting to Remove Staging Disallow: / Upon Domain Launch

Always inspect https://yourdomain.com/robots.txt immediately after going live. Leaving Disallow: / blocks Googlebot and causes AdSense review rejection for 'Site down or unavailable'.

Accidentally Blocking CSS, JS, or /_astro/ Static Assets

Modern Googlebot renders full pages including stylesheets and scripts. Disallowing /_astro/ or /assets/ breaks mobile usability tests and degrades rankings.

Relying on robots.txt to Hide Sensitive Secrets

robots.txt is a public file anyone can read and does not enforce access control. Protect admin panels with real authentication rather than listing secret paths inside Disallow.

Domain Launch & AdSense Preparation

  • Publishing a compliant root robots.txt with Sitemap and Mediapartners-Google access before applying for Google AdSense.
  • Setting selective AI training bot policies while keeping Google Search and Bing indexing fully open.
  • Temporarily blocking crawlers from IP-only preview ports or staging subdomains.

Frequently Asked Questions

Why should AdSense publishers explicitly allow Mediapartners-Google?

Google AdSense uses the Mediapartners-Google crawler to inspect page content and serve high-RPM contextual ads. Explicitly allowing it ensures restrictive wildcard rules never block AdSense reviews.

Where must robots.txt be hosted on my VPS?

It must be reachable at the exact top-level root URL https://yourdomain.com/robots.txt returning HTTP 200 with Content-Type text/plain.

Does blocking GPTBot affect Google Search rankings?

No. Blocking OpenAI's GPTBot or Common Crawl's CCBot has zero effect on Googlebot or Bingbot indexing.

Local Privacy Guarantee: robots.txt rules are assembled strictly client-side inside your browser with zero external tracking.