- Home
- Free tools
- Robots.txt Generator
Free tool · No signup
Robots.txt Generator
Choose what crawlers may fetch, tick the search and AI crawlers you want to keep out, and copy a valid robots.txt file.
Your robots.txt
User-agent: *
Disallow:
Save it as robots.txt at the top level of your domain, for example https://example.com/robots.txt. Then confirm a URL is allowed or blocked with the robots.txt tester.
In short
A robots.txt generator writes the plain-text file that tells crawlers which parts of a site they may fetch. Set the default, list the paths to block, tick any search or AI crawlers you want kept out, and add your sitemap address; the file is built as you type. Save it as robots.txt at the top level of your domain. It controls crawling only: a blocked page can still be indexed if other sites link to it.
Worked example
What the output looks like
- Input
- Allow everything · block /admin/ and /cart · block GPTBot and CCBot · sitemap https://example.com/sitemap.xml
- Output
- User-agent: GPTBot User-agent: CCBot Disallow: / User-agent: * Disallow: /admin/ Disallow: /cart Sitemap: https://example.com/sitemap.xml
- How to read it
- The two named crawlers share one group that blocks the whole site. Every other crawler falls under the * group and may fetch everything except the admin folder and the cart.
How it works
Set the default and the blocked paths
Most sites allow everything and block a few areas such as an admin folder, a cart or internal search results. Paths start with a slash; the generator adds one if you leave it out and shortens a full address to its path.
Choose crawlers to keep out
Tick a crawler to block it from the whole site. Each is written under its documented user-agent token. Blocking a training crawler such as GPTBot or Google-Extended does not affect Google Search; blocking Googlebot or Bingbot removes your content from their results.
Add the sitemap, then test
Sitemap lines need the full address including https://. Copy or download the file, upload it to the top level of your domain, and confirm a few URLs with the robots.txt tester.
What this tool does
- Builds the file as you type, ready to copy or download
- Blocks paths and adds Allow exceptions with the correct syntax
- One-tick blocking for 14 search and AI crawlers, including GPTBot, ClaudeBot and PerplexityBot
- Adds Sitemap lines and checks they are full addresses
- Warns before a rule that would block your whole site or a search engine
Questions
Frequently asked
More free SEO tools
- Robots.txt Tester/free-tools/robots-txt-tester
- XML Sitemap Validator/free-tools/sitemap-validator
- Noindex Checker/free-tools/noindex-checker
Learn the concept
Do it inside LemRank
Want the full picture?
LemRank tracks rankings, backlinks, and AI-search visibility in one dashboard. 14-day free Pro trial. No credit card.