Robots.txt Generator & Tester Free

Choose what crawlers may access, decide which AI bots to allow, add your sitemap, and copy a valid robots.txt. Paste any path to check whether it's blocked.

🤖 Rules

Ignored by Google; respected by Bing and some others.

✅ robots.txt

# robots.txt generated with pyalm.com/free-tools/robots-txt-generator

User-agent: *
Disallow: /admin/
Disallow: /cart/
Disallow: /checkout/

Sitemap: https://www.example.com/sitemap.xml

🧪 Test a URL

✗ Blocked for Googlebot
Matched: Disallow: /checkout/
Built by Pyalm

Pyalm builds SEO-first websites for businesses in India and the UAE — technical SEO, structured data, fast hosting and the right DNS and email setup from day one.

Pyalm serviceWebsite developmentFast, SEO-ready business websites and web apps built in Next.js — designed around the questions your buyers ask.See website development Pyalm serviceAI implementationPractical AI assistants, document processing and agents connected to your data — scoped, measured and production-ready.See AI implementation

What robots.txt does — and doesn't

robots.txt tells well-behaved crawlers which paths not to fetch. It is not access control: blocked URLs can still be indexed if linked from elsewhere, and bad bots ignore it. To keep a page out of Google, allow crawling and use a noindex tag instead.

AI crawlers

Bots such as GPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended (Gemini training), CCBot (Common Crawl) and PerplexityBot each have their own user-agent. Blocking them controls whether your content is used for AI training or answers — a business decision with trade-offs for visibility in AI search.

Related

More free tools you might need

🗺️

XML Sitemap GeneratorFree

Turn a list of URLs into a valid XML sitemap with lastmod, changefreq and priority.

🔍

SERP Snippet PreviewFree

Preview how your title and meta description look on Google — desktop and mobile, with pixel widths.

🌐

WHOIS / Domain LookupFree

Check who a domain is registered with, when it expires and its nameservers — via official RDAP data.

Browse all free tools

FAQ

Frequently asked questions

Where does robots.txt go?

At the root of each host: https://www.example.com/robots.txt. A robots.txt on www doesn't apply to a subdomain like shop.example.com.

Does blocking Google-Extended affect my Google rankings?

No. Google-Extended only controls use of your content for Gemini and Vertex AI. Normal Search crawling and ranking use Googlebot.

Which rule wins when Allow and Disallow overlap?

Google uses the most specific (longest) matching rule; if they're equal length, Allow wins. The tester applies the same logic.

Want a website that ranks and converts?

Pyalm builds SEO-first websites for businesses in India and the UAE — technical SEO, structured data, fast hosting and the right DNS and email setup from day one.

See website development