Skip to content

Free Robots.txt File Generator

Build clean, custom robots.txt directives for free to instruct search engines on which directories and files to crawl or block.
Optional

Directs bots (e.g. Bing, Yandex) to wait N seconds between request calls.

Sitemaps

Leave empty if you don't have one

Add sitemap
Clear input

Custom Path Rules (Global)

Block or allow specific directory paths or file patterns for all bots.

Add path rule
Clear input

No custom path rules yet - add one above or use a quick-add shortcut below.

Quick Add Common Directories to Disallow:

Search Robots

Block AI Crawlers

Disallow GPTBot, ClaudeBot, CCBot, Google-Extended, and other AI training/scraping bots.

Bot-Specific Directives (AI & Engines)

Configure distinct rules for specific search engines or AI web scrapers.

No bot-specific rules yet - add one to target a specific search engine or AI crawler by name.

Robots.txt Preview
Copy robots.txt to clipboard
Download as robots.txt
Clear all fields
robots.txt

Upload the generated file to /robots.txt in your site's root directory.

Syntax Validation: Passed

Your robots.txt file is formatted correctly for Googlebot & web standard scrapers.

Want to test if a URL path is blocked by your rules?
Open Tester

Not sure what to allow or block?

We review how Google and AI crawlers see your site, then set up robots.txt, sitemaps and indexing rules that match your goals.

See our SEO services

How to Use the Robots.txt Generator

Create a robots.txt to control crawling and indexing for your site - follow these basic steps.

1. Set Defaults or Apply a Template

Choose the global Allow/Disallow rule, crawl-delay, and sitemaps — or start from a preset like WordPress or E-Commerce.

2. Add Path Rules & Overrides

Add custom Allow/Disallow path rules, block AI crawlers, or override behavior for specific search robots.

3. Copy or Download

Copy the generated robots.txt or download it and upload it to your site root at /robots.txt.

Frequently Asked Questions

A robots.txt file is a plain text file placed in your website's root directory that tells search engine crawlers which pages or files they can or cannot request from your site. It helps manage crawler traffic, prevent server overload, and keep non-public pages from being crawled.

The robots.txt file must be placed in the top-level root directory of your domain (e.g., https://yourdomain.com/robots.txt. Search engine bots will only check for the file in this exact location.

No. A robots.txt file prevents bots from crawling a page, but if other sites link to that blocked URL, Google may still index the page title without crawling its content. To completely keep a page out of search results, use a noindex tag or password protection instead.

Disallow instructs crawlers not to visit a specific URL or path, while Allow explicitly permits access to a page or subfolder located inside an otherwise disallowed directory.

Not sure what your robots.txt should block? Have us review your crawl setup.

Explore More Tools

Discover more free tools to help you build, test, and optimize your site.

Want to see how your whole site scores?

Enter your website for a free scan of your technical SEO, schema coverage and whether ChatGPT and Gemini can cite you. No sign up needed.

This page has a noindex tag — it's telling Google not to index it, so it can't rank no matter how well-optimized everything else is.
Google Technical SEO
AI Citation Index (GEO)
Schema Graph Coverage

We use cookies to improve your experience and analyze site traffic. By clicking "Accept", you agree to our use of cookies. Privacy Policy