Websites from ₹4,999 · Apps from ₹24,999 · 100 free tools

Free tool · SEO tools

Robots.txt Generator

Build a correct robots.txt file in seconds: choose what to block, add your sitemap and copy the result.

Free · no sign-up · runs in your browser, nothing is uploaded

Need help fixing it?

Get a free website audit from our team

Our developers check your site's speed, SEO and mobile experience and send you a short list of fixes. No charge, no obligation.

  • Reply on WhatsApp or call, your choice
  • Websites from ₹4,999, apps from ₹24,999

Request free audit

We reply within a few working hours. No spam.

The Robots.txt Generator builds a correct robots.txt file for your website in seconds. Pick a starting preset, add your sitemap and any folders you want to keep crawlers out of, then copy or download the file. It is meant for Indian business owners running a WordPress site, bloggers, students learning SEO and developers setting up a new or staging site.

What robots.txt does

robots.txt is a small text file at the root of your site that tells search engine crawlers which areas they should not crawl, and where your sitemap is. It is not a security tool: blocked pages can still be visited by anyone, and the file itself is public.

How to use it

  1. Choose a preset under Start from: WordPress site (recommended), Allow everything, or Block everything (staging site).
  2. Enter your Sitemap URL, for example https://yourdomain.com/wp-sitemap.xml.
  3. Under Extra paths to block, add one path per line, such as /cart/ or /checkout/. A missing leading slash is added for you.
  4. Tick Block AI training crawlers if you do not want your content collected for AI training.
  5. Click Copy or Download and upload the file to the root of your domain.

What each preset writes

  • WordPress site: blocks /wp-admin/ but allows /wp-admin/admin-ajax.php, which many themes and plugins need, and blocks internal search results (/?s= and /search/).
  • Allow everything: lets all crawlers crawl the whole site. If you add no extra paths, it writes an empty Disallow line.
  • Block everything: Disallow: / for all crawlers. Use this only for a test or staging copy, never for your live site. Extra paths are ignored with this preset.

The AI option adds separate groups that block GPTBot, CCBot, Google-Extended, anthropic-ai and ClaudeBot. Your sitemap line is added at the end.

Be careful

A single wrong line such as Disallow: / can stop Google from crawling your whole site. Start from a preset, keep it short, and check it with our robots.txt checker after uploading.

  • Do not block CSS, JavaScript or image folders. Google needs them to see your page properly.
  • Do not use robots.txt to hide private pages. Protect them with a login instead.
  • After a site moves from staging to live, check that the “block everything” file was replaced.

Honest limits

Well-behaved crawlers such as Googlebot follow robots.txt, but some bots ignore it. Blocking a page does not remove it from Google if other sites link to it. The tool writes the file; it does not upload it or check your live site.

Privacy

The generator runs in your browser. Nothing you enter is sent to our server.

If you would rather have experts manage crawl settings, updates and backups, see our website maintenance plans. After uploading, test the file with the Robots.txt & Sitemap Checker, and create a sitemap with the XML Sitemap Generator.

FAQ

Robots.txt Generator: FAQs

Where do I upload robots.txt?

At the root of your domain, so it opens at https://yourdomain.com/robots.txt. WordPress creates a virtual one automatically, which an SEO plugin can edit.

Does blocking a page remove it from Google?

No. To keep a page out of search results, use a noindex tag and let Google crawl it.

Should I block AI training crawlers?

It is your choice. Ticking the option asks crawlers such as GPTBot, CCBot and Google-Extended not to collect your content. It does not block Googlebot, so normal Google Search crawling continues.

Which preset should a WordPress site use?

The WordPress preset. It keeps crawlers out of the admin area and internal search results while allowing admin-ajax.php, which many themes and plugins need.

When should I use the Block everything preset?

Only on a test or staging copy that should not appear in Google. Replace it with a normal file before the site goes live.

More free tools

You might also like

Website SEO Checker

Check any page for 20+ on-page SEO issues in seconds: title, meta description, headings, images, links, schema, mobile setup, robots.txt and sitemap.

SEO tools

Meta Tag & Open Graph Checker

See every meta tag on a page and preview how it looks on Google, WhatsApp, Facebook, LinkedIn and X before you share…

SEO tools

Heading Checker (H1–H6)

See the full H1–H6 outline of any page, spot missing or multiple H1 tags and skipped heading levels.

SEO tools

See all free tools

Have a project in mind?

Tell us what you want to build. You get ideas, a timeline and a clear quote, free.

Chat on WhatsApp