TechToolsCenter

Can't find the tool you're looking for?

Request it and vote on what we build next — it takes 20 seconds.

Request a Tool
TechToolsCenter

All Your Essential Tools. One Center. Free, fast, privacy-first online tools that run entirely in your browser.

Built for speed. Designed for privacy. Made for everyone.

Collections

  • Everyday Essentials
  • Calculator Hub
  • Converter Hub
  • Text Studio
  • Business Toolkit
  • PDF Toolkit
  • Image Studio

Popular tools

  • AI Studio
  • Estimate Maker
  • Purchase Order Maker
  • Delivery Challan Maker
  • Invoice Maker
  • Quotation Generator

Company

  • All tools
  • About
  • Updates
  • Community
  • Analytics
  • Contact
  • Editorial policy
  • Privacy
  • Sitemap

Copyright © 2026 TechToolsCenter. All Rights Reserved.

Designed & Developed by Incinc Media Team

  1. Home
  2. Blog
  3. SEO
  4. Robots.txt Explained: How to Control What Search Engines Crawl
SEO August 4, 2026 2 min read

Robots.txt Explained: How to Control What Search Engines Crawl

A robots.txt file is a set of instructions, not a lock — here's what it actually does, what it can't do, and how to write one that doesn't accidentally block your whole site.

TCTechToolsCenter Team

On this page

  • What robots.txt actually controls
  • The basic syntax
  • Step-by-step: create a robots.txt
  • Common mistakes

robots.txt is a plain-text file at your site's root (yoursite.com/robots.txt) that tells well-behaved search engine crawlers which parts of your site they're allowed to crawl. It's a set of polite instructions, not a security mechanism — it doesn't password-protect anything, and a page can still get indexed if something else links to it, even if robots.txt disallows crawling it.

What robots.txt actually controls

  • Crawling, not indexing — disallowing a URL stops crawlers from fetching its content, but the URL can still appear in search results (usually with no description) if it's linked elsewhere.
  • Well-behaved bots only — legitimate search engines respect it; it does nothing to stop a scraper or bad actor that ignores the file entirely.
  • Crawl budget — for large sites, blocking low-value sections (admin pages, search result pages, duplicate filtered views) helps crawlers spend more time on pages that matter.

Sponsored

The basic syntax

  • `User-agent: *` — applies the following rules to all crawlers (or name a specific one, like `Googlebot`).
  • `Disallow: /path/` — blocks crawling of that path and everything under it.
  • `Allow: /path/exception` — carves out an exception within a disallowed path.
  • `Sitemap: https://yoursite.com/sitemap.xml` — points crawlers to your sitemap, which genuinely helps discovery.

Step-by-step: create a robots.txt

  1. Open the Robots.txt Generator.
  2. List the paths you want to block (e.g. `/admin/`, `/search?`) — leave public content unblocked by default.
  3. Add your sitemap URL so crawlers can find it easily.
  4. Copy the generated file and upload it as `robots.txt` at your site's root, not in a subfolder.
A single misplaced `Disallow: /` blocks your ENTIRE site from being crawled — this is one of the most common accidental SEO disasters, often left over from a staging environment's robots.txt that got deployed to production by mistake.

Common mistakes

  • Using robots.txt to try to keep a page out of Google entirely — if you need that, use a `noindex` meta tag instead; robots.txt only stops crawling, not indexing.
  • Blocking CSS/JS files that Googlebot needs to render your page properly, which can hurt how well Google understands your page's content and layout.
  • Forgetting robots.txt must live at the exact root (`/robots.txt`) — a copy in a subdirectory is ignored.

Tools used in this article

Robots.txt GeneratorCreate a robots.txt file with rules and sitemap.Sitemap.xml GeneratorBuild a sitemap.xml file from a list of URLs.Meta Tags GeneratorGenerate SEO meta, OpenGraph and Twitter Card tags.Google SERP PreviewPreview how your page looks in Google search results.

Sponsored

Frequently asked questions

Not reliably — it stops crawling, but a blocked page can still appear in search results (usually without a description) if something else links to it. Use a `noindex` meta tag if you need a page fully out of search results.

TC

TechToolsCenter Team

Product & Tools

The team behind TechToolsCenter — building fast, private, browser-based tools and writing practical guides on how to get the most out of them.

Related articles

SEO 2 min

How to Generate a Sitemap.xml for Your Website (Free)

A sitemap doesn't guarantee rankings, but it does help search engines find your pages faster — here's what actually belongs in one, and how to build it without writing XML by hand.

TechToolsCenter TeamRead
SEO 2 min

JSON-LD Schema Markup: How to Add It Without Coding

Schema markup is what powers rich results — star ratings, FAQ dropdowns, recipe cards — in Google search. Here's what it actually does and how to generate it without writing JSON by hand.

TechToolsCenter TeamRead
SEO 2 min

How to Write Meta Titles and Descriptions That Improve Click-Through Rate

Meta tags don't affect rankings directly, but they decide whether people click your result at all. Here's how to write ones that actually earn the click.

TechToolsCenter TeamRead

On this page

  • What robots.txt actually controls
  • The basic syntax
  • Step-by-step: create a robots.txt
  • Common mistakes

Sponsored