Ad · 728x90

Robots.txt Generator

Generate a robots.txt file for your website. Control which pages search engine bots can crawl. Add sitemap URL and configure per-bot rules.

Robots.txt Generator

Default Bot Rules

Disallow These Paths (one per line)

Block Specific Bots

Ad · 336x280

Robots.txt: What It Is and How to Configure It

Robots.txt is a text file at the root of your domain (yoursite.com/robots.txt) that tells search engine crawlers which pages they can and cannot access. It's the first thing Googlebot checks before crawling your site.

Robots.txt Syntax

  • User-agent: * — Applies to all bots (Google, Bing, etc.)
  • Disallow: /path/ — Block this path for the specified user-agent
  • Allow: /path/ — Override a Disallow rule for a specific path
  • Sitemap: https://example.com/sitemap.xml — Tell search engines where your sitemap is
  • Crawl-delay: 1 — Ask bots to wait 1 second between requests (reduces server load)

What to Block with Robots.txt

  • /admin/, /login/, /account/ — Private pages that shouldn't appear in search
  • /cart/, /checkout/ — Transactional pages with no SEO value
  • /api/ — API endpoints that return JSON, not HTML
  • /search? — Site search result pages (thin, duplicate content)
  • /wp-admin/ — WordPress admin area (security + crawl budget)

Important: Robots.txt is Not Security

Robots.txt tells cooperative bots not to crawl. Malicious scrapers ignore it. For truly sensitive pages, require authentication. Also: blocking a URL in robots.txt doesn't remove it from Google's index — use noindex meta tag for that.

Frequently Asked Questions