Robots.txt Generator Guide — How It Works, Tips & Benefits
Free Robots.txt Generator online — generate robots.txt file for search engine crawlers. Step-by-step guide with tips. 100% free, works on mobile. 2026 updated.

Try this tool now — 100% free, no signup required
Open ToolA Bangalore-based D2C skincare brand recently discovered that Googlebot was spending 70% of its crawl budget hitting /cart, /checkout, and ?sort=price_asc URL variations on their Shopify store — URLs that have no business showing up in search results. Their actual product pages, the ones that should rank for "vitamin C serum India," were getting crawled once every 11 days. One properly configured robots.txt file later, product pages were being refreshed every 36 hours and organic sessions climbed 42% in six weeks.
That single text file sitting at the root of your domain — yourdomain.com/robots.txt — is the first thing Googlebot, Bingbot, and every other crawler reads before touching anything else on your site. Get it right and you shape how search engines spend their limited crawl budget on your site. Get it wrong and you can accidentally de-index your entire blog, as happened to a popular Kota-based coaching institute in 2024 whose developer pushed a Disallow: / during a staging migration and tanked 2.3 lakh monthly organic visits in nine days.
What robots.txt actually controls (and what it doesn't)
Robots.txt is a plain-text instruction file that follows the Robots Exclusion Protocol — a standard that became an official IETF RFC (9309) in 2022. It tells well-behaved crawlers which paths they may fetch and which they shouldn't bother with. It is not a security mechanism. If you Disallow: /admin, you've essentially published a public note saying "there's an admin folder here, please don't look." Malicious bots will absolutely look. Sensitive paths need authentication, not just a robots.txt entry.
Second clarification that trips up most Indian site owners: Disallow is not the same as noindex. If a page is linked from elsewhere on the web and you only disallow it in robots.txt, Google can still index the URL (minus the content) and show it as "Indexed, though blocked by robots.txt" in Search Console. To actually prevent indexing, you need a <meta name="robots" content="noindex"> tag — and ironically, for that tag to be seen, the page must be crawlable. So you cannot disallow and noindex the same URL simultaneously.
Robots.txt controls crawling. Meta robots tags control indexing. Two different jobs.
Anatomy of a working robots.txt file
Every directive follows a simple pattern — a user-agent block, followed by allow/disallow rules, optionally followed by a sitemap declaration. Here's a minimal file suitable for a WordPress blog hosted on Hostinger India or Bluehost:
User-agent: *— rules below apply to all crawlersDisallow: /wp-admin/— blocks the admin folderAllow: /wp-admin/admin-ajax.php— but keeps AJAX accessible for front-end featuresDisallow: /?s=— blocks internal search result pages (these create infinite URL variations)Sitemap: https://yourdomain.com/sitemap.xml— points crawlers to your sitemap
That's it. Five lines of text can handle 90% of what a small Indian WordPress site needs. The file must sit at the root (https://yourdomain.com/robots.txt, not inside a subfolder), must be served as text/plain, and must be under 500 KB — Google ignores anything larger.
Case sensitivity matters. Disallow: /Admin will not block /admin. Trailing slashes matter too: Disallow: /blog blocks both /blog and /blog/post-1, whereas Disallow: /blog/ blocks only paths inside the folder, leaving /blog itself crawlable.
Common Indian site setups and their robots.txt needs
WordPress blogs (news sites, personal blogs, affiliate sites)
Most of India's independent publishing — a food blog in Hyderabad, a tech review site in Pune, a mommy blog in Chennai — runs on WordPress. The default WordPress robots.txt is virtual and minimal. You want to upgrade it to block comment feeds, trackbacks, and search parameter URLs that generate duplicate content. If a single trending post gets 50,000 pageviews and your search URLs are crawlable, Googlebot can waste thousands of requests on /?s=keyword1, /?s=keyword2 variations instead of your actual posts.
Blogger / Blogspot sites
A specific case: a robots.txt generator for Blogger is one of the most-searched variants because Blogger has a quirky setup — you can enable custom robots.txt from Settings → Crawlers and indexing, but Blogger forcibly blocks /search by default (which also inadvertently blocks label pages like /search/label/finance). For a Blogger site targeting Indian readers, a sensible configuration disallows /search but explicitly allows /search/label/ if labels are important to your navigation, and declares the sitemap at https://yourblog.blogspot.com/sitemap.xml. Keep an eye on this — Blogger-generated robots.txt sometimes conflicts with the manual version you add.
Shopify and WooCommerce stores
E-commerce stores — the Surat textile wholesaler on WooCommerce, the Jaipur jewellery brand on Shopify — have the biggest crawl-budget problems. Faceted navigation generates URL combinations like /collections/sarees?color=red&price=0-5000&material=silk. A medium-sized store can produce 2–3 lakh crawlable URL variations from just 500 products. Blocking parameter-based URLs via robots.txt (Disallow: /*?*color=, Disallow: /cart, Disallow: /checkout) is non-negotiable if you want product pages ranking on Google.in.
Custom-built SaaS and marketing sites
A Bangalore SaaS startup running Next.js on Vercel typically needs to block /api/, /_next/, authenticated dashboards (/app/, /dashboard/), and any staging preview URLs. If you have a separate blog subdomain like blog.yoursaas.in, that needs its own robots.txt — robots.txt files don't apply across subdomains.
Why crawl budget matters more for Indian sites than you think
Google doesn't crawl your entire site every day. It assigns each domain a "crawl budget" based on site health, server speed, and perceived importance. For a brand-new domain registered through GoDaddy or BigRock last month, that budget might be 200–500 URLs per day. For an established site like a 10-year-old Mumbai real estate portal, it could be 50,000+ per day.
Here's the Indian context nobody talks about: shared hosting plans popular with Indian site owners (Hostinger's ₹149/month plan, Bluehost India's basic tier) have slower response times than premium US-hosted sites. Google's crawler measures response time — if your site averages 1.8 seconds per request versus a competitor's 400ms, Googlebot throttles its crawl rate on your site to avoid overloading your server. Combined with a leaky robots.txt that lets the bot waste requests on /wp-login.php?redirect_to= variations, you end up with important pages going weeks between recrawls.
A properly tuned robots.txt tells the crawler don't bother with these, which concentrates the budget on URLs that actually matter. Pair this with a clean XML sitemap and you're giving Google a map plus a "do-not-enter" sign. Generate your sitemap first using the XML Sitemap Generator, then declare it inside your robots.txt — the two files work as a pair.
Mistakes that quietly destroy rankings
I've seen each of these on live Indian sites in the last 18 months. Avoid them.
- Blocking CSS and JavaScript. Older SEO guides from 2015 told people to disallow
/wp-includes/and/wp-content/plugins/. Don't. Google renders pages like a browser now, and if it can't fetch your CSS and JS, it sees a broken page and may flag mobile usability issues. Your Core Web Vitals scores in Search Console will tank. - Leaving
Disallow: /on production. Staging sites usually have a blanket disallow. When developers migrate to production, they sometimes forget to update it. One mid-sized e-commerce site in NCR lost ₹18 lakh of monthly organic revenue over three weeks before anyone noticed. - Blocking the sitemap folder. If your sitemap sits at
/sitemaps/sitemap-index.xmland you've disallowed/sitemaps/, Google can't fetch it. Weirdly common. - Using robots.txt to hide "thin content." If a page is low quality, improve it or noindex it. Disallowing it in robots.txt doesn't remove it from the index — it just stops Google from re-evaluating it, so a poor-quality page stays stuck in the index indefinitely.
- Case mismatches.
Disallow: /PDF/doesn't block/pdf/. URLs are case-sensitive in the protocol. - Multiple sitemap declarations without absolute URLs. Sitemap URLs in robots.txt must be absolute (
https://yourdomain.com/sitemap.xml), not relative (/sitemap.xml). Relative paths are silently ignored.
Using the Robots.txt Generator on SabTools
Hand-writing robots.txt syntax is error-prone — one misplaced wildcard and you've blocked your product category pages. The Robots.txt Generator on SabTools lets you tick checkboxes for common scenarios (block admin, block search parameters, block specific crawlers like AhrefsBot or SemrushBot, add sitemap URL) and spits out syntactically correct output you can paste directly into your site's root folder or your Blogger custom robots.txt setting.
A typical workflow for a small business owner launching their first website:
- Pick your platform type (WordPress, Blogger, Shopify, custom).
- Add paths you want blocked — admin areas, thank-you pages, internal search.
- Add your sitemap URL (if you don't have one yet, generate one with the sitemap tool first).
- Choose whether to block aggressive SEO crawlers like AhrefsBot and SemrushBot — many Indian site owners block these to keep competitor data private and save bandwidth on cheaper hosting plans.
- Copy the output and upload
robots.txtto your domain root via cPanel File Manager or FTP.
Once uploaded, verify at https://yourdomain.com/robots.txt in your browser. If you see the file content, you're live.
Testing before and after deployment
Never push a new robots.txt to production without testing. Google Search Console has a robots.txt report under Settings → Crawling that shows the parsed version Google is using and flags any syntax errors. The old standalone robots.txt tester has been merged into this report.
For paths you want to test specifically — say you want to confirm /products/winter-jacket is crawlable but /products/winter-jacket?size=XL&color=black is blocked — paste both URLs into the URL Inspection tool. It'll tell you exactly which directive is matching.
After deployment, run a broader audit on your site using the SEO Checker, which flags robots and sitemap issues alongside Core Web Vitals and schema problems — useful for a full post-launch sanity check. Many Indian site owners also pair this with the Keyword Density Checker on their money pages to make sure the content is actually optimised for the terms they want to rank for.
Blocking specific crawlers (the Indian SEO reality)
Here's a scenario common to Indian SaaS and content sites. AhrefsBot and SemrushBot aggressively crawl your site so competitors can see what you're ranking for, who's linking to you, and which pages are performing. This also consumes real bandwidth — on a shared hosting plan with a 100 GB monthly transfer cap, a single aggressive crawler can eat 10–15 GB a month.
You can block them with:
User-agent: AhrefsBot→Disallow: /User-agent: SemrushBot→Disallow: /User-agent: MJ12bot→Disallow: /
Trade-off: you lose visibility into your own site's backlink profile on those tools, and you can't legally scrape competitor data with them if you later subscribe. For most small Indian sites — a local coaching institute in Patna, a boutique legal firm in Mumbai — the bandwidth savings outweigh the loss. For agencies managing multiple client sites, you probably want to leave them open.
Never block Googlebot, Bingbot, or Googlebot-Image unless you have a very specific reason. Blocking Googlebot-Image, for instance, kills your traffic from Google Images, which is a surprisingly large source for recipe blogs, fashion sites, and real estate listings in India.
When robots.txt alone isn't enough
Robots.txt is one layer. For complete control you typically combine three mechanisms:
- Robots.txt for crawl control at the directory/pattern level.
- Meta robots tags (
noindex,nofollow) on individual pages for index control. - Canonical tags (
<link rel="canonical">) to consolidate duplicate URLs that must stay crawlable, like faceted product pages where you want link equity to pass but only one URL to rank.
If you're running paid SEO as a growth channel for your startup, the economics matter: a Bangalore B2B SaaS spending ₹2.5 lakh/month on content and link building needs clean crawl architecture to convert that investment into traffic. You can model the expected returns before committing budget using the SEO ROI Calculator, which projects organic clicks and payback period based on realistic Indian search volumes.
Quick answers to real questions
How often does Google re-fetch robots.txt? Typically every 24 hours, though it can cache for up to 7 days if your site goes down. If you've made an urgent fix, you can request a refresh via Search Console's robots.txt report.
Do I need a robots.txt file at all? No, it's optional. If you don't have one, crawlers assume everything is allowed. But even a minimal file with just a sitemap declaration helps crawlers discover your content faster.
Can I have different rules for Googlebot vs. Bingbot? Yes. Create separate User-agent: blocks. The most specific match wins, so Googlebot will follow its own block and ignore the * block if both exist.
My robots.txt generator free output has Crawl-delay — should I use it? Google ignores Crawl-delay. Bing and Yandex respect it. For sites on cheap Indian shared hosting that occasionally buckle under traffic, a Crawl-delay: 10 for Bingbot can prevent server overload.
Set it up once, test it in Search Console, and revisit it any time you add a new section, migrate platforms, or change URL structure. Open the Robots.txt Generator and build your file in under two minutes →