What Is a Business Website Robots.txt for Small Businesses?

What Is a Business Website Robots.txt for Small Businesses?

A business website robots.txt file is a small text file that tells search engine crawlers which parts of a website they may visit and which parts they should leave alone. It lives at the root of a website, at an address such as example.com/robots.txt, and it is one of the first files a crawler reads when it arrives. For a small business, it is a quiet piece of housekeeping: it does not change how the site looks, it does not write content, and it does not bring in customers on its own.

The file is simple to read once the basic rules are clear. It uses short lines, each with a job: one line names the crawler, one line blocks a path, one line allows a path, and one line can point to the sitemap. The rest of this article walks through those lines in plain language, with examples a non technical owner can follow, and a checklist for checking the file after any change to the site. Our guide to what a business website sitemap is for small businesses covers the companion file that lists pages for search engines, and the two files work best when they agree with each other.

Key takeaways

  • A robots.txt file is a set of instructions for search engine crawlers, not a page for visitors and not a security tool.
  • It can ask crawlers to skip admin pages, search result pages, and private areas, so crawl time goes to pages that earn customers.
  • It cannot remove a page from search results on its own, and it cannot keep a page private: a blocked page can still appear in results if other sites link to it.
  • The file must live at the root of the site, use exact paths, and use lower case where the site uses lower case, because crawlers read it literally.
  • Check the file after every redesign, platform change, or plugin change, and check it against the sitemap so the two files do not contradict each other.

What a business website robots.txt file actually is

A robots.txt file is a plain text file that sits at the top level of a website. When a search engine crawler, such as Googlebot, arrives at a site, it usually asks for this file first, before it visits any page. The file answers a simple question: which parts of this site may the crawler visit? The answer is written as a set of groups, and each group starts with a User-agent line that names the crawler the rules apply to.

Inside each group, Disallow lines list the paths a crawler should not visit, and Allow lines list the paths a crawler may visit even inside a blocked area. A typical small business file might block the admin area, the login page, and internal search results, while allowing everything else. The file can also carry a Sitemap line that gives the address of the sitemap, so a crawler can find the list of pages in one step.

An example helps. A file with User-agent: * followed by Disallow: /wp-admin/ tells every crawler to skip the WordPress admin area. A line such as Disallow: /cart/ tells crawlers to skip shopping cart pages, which have no value in search results. A line such as Sitemap: https://example.com/sitemap.xml points crawlers to the sitemap.

How search engines read a robots.txt file

Search engines read a robots.txt file before they crawl, and they treat it as a request rather than a command backed by law. Well behaved crawlers from Google, Bing, and other major search engines follow the rules, and that is what makes the file useful.

When a crawler reads a Disallow rule, it skips the matching path and spends its crawl time elsewhere. That matters because a crawler does not visit every page on every visit: it has a limited budget of time and attention for each site, known as crawl budget. A small site rarely hits that limit, but a site with hundreds of filtered product pages, search result pages, or duplicate pages can waste a large share of its crawl budget on pages that will never bring a customer.

A person at a desk with a laptop, an open notebook, and a mug of coffee
A small business owner checks the website on a laptop after a change to the site.

The file also affects how quickly changes are found. If a new service page is allowed and listed in the sitemap, a crawler can find it on the next visit. If a page is blocked, a crawler will not visit it, even if the sitemap lists it, and the search engine will usually follow the block. That is why the two files must agree. Our guide on how to set up Google Search Console for a small business website in 2027 shows how to check which pages Google has actually found, and the coverage report there is the fastest way to spot a page that a robots.txt rule has hidden by accident.

What a robots.txt file controls, and what it does not control

A robots.txt file controls crawling, which is the act of visiting a page. It does not control indexing, which is the act of showing a page in search results, and that distinction causes most of the confusion around the file. A page that is blocked in robots.txt can still appear in search results if other websites link to it, because the search engine knows the page exists even though it has not visited it.

To remove a page from search results, an owner should use a noindex instruction on the page itself, or remove the page and let it return a proper error, rather than blocking it in robots.txt. Blocking the page prevents the crawler from seeing the noindex instruction, so the page can stay in results longer than it would otherwise. The same logic applies to private content. A robots.txt file does not protect a page: anyone who knows the address can open it, and a search engine can list the address.

Common mistakes in a robots.txt file

Most robots.txt mistakes come from copying rules without checking them, or from a change that nobody reviewed. The most damaging mistake is a blanket block: a line such as Disallow: / that blocks the whole site. That line sometimes appears during development, when a team wants to keep an unfinished site out of search results, and it is then forgotten when the site goes live. A live site with that line tells every crawler to go away, and search traffic can fall to nothing until the line is removed.

Other common mistakes are smaller but still costly. A path that uses the wrong case, such as /Services/ when the real page is /services/, will not block or allow the intended page, because crawlers read paths literally and most servers treat upper and lower case as different addresses. A rule that blocks a whole folder can also block useful files inside it, such as images or style files that a search engine needs to render a page properly.

The caveats that matter

A robots.txt file is a modest tool, and most of the trouble around it comes from expecting too much from it.

Business website robots.txt at a glance
Detail What is known
Whole site block A single Disallow: / line blocks every crawler from the whole site, and it is the most common serious mistake.
Removal from results Blocking a page does not remove it from results; a noindex instruction or a proper removal is needed instead.
Privacy The file is public and does not protect a page; private pages need a password or a login.
Sitemap conflict A page listed in the sitemap but blocked in robots.txt will usually not be visited, and the block wins.
Case sensitivity Paths are read literally, so /Services/ and /services/ are different paths on most servers.
Images and files Blocking image, style, or script folders can stop a search engine from rendering a page properly.
Crawl delay A crawl delay line is ignored by Google, so it does not slow down Googlebot even when it is present.
One file per host Each host needs its own file at its own root, so a subdomain needs a separate file from the main domain.

Checklist: checking a robots.txt file honestly

Use these checks after any redesign, platform change, plugin change, or edit to the file itself.

  • Open the file in a browser at the site address followed by /robots.txt and confirm that it loads without an error.
  • Check that no line blocks the whole site, and that no line blocks the homepage, the service pages, or the product pages.
  • Check that the paths use the exact case and spelling of the real pages, including any folder names that changed in a redesign.
  • Confirm that image, style, and script folders are allowed, so a search engine can render each page as a visitor sees it.
  • Compare the file with the sitemap: no page should be listed in the sitemap and blocked in the file at the same time.
  • After any edit, test the file with a robots.txt tester and check the search console coverage report within a week.

Frequently asked questions

Does every small business website need a robots.txt file?

Almost every site benefits from one, and most already have one without the owner knowing, because the platform creates it automatically.

Where does a robots.txt file live?

It lives at the root of the website, at an address such as example.com/robots.txt. A file in a subfolder does not work, because crawlers only look at the root address.

Can a robots.txt file remove a page from Google?

No. Blocking a page stops a crawler from visiting it, but the page can still appear in results if other sites link to it.

What is the difference between a robots.txt file and a sitemap?

A robots.txt file tells crawlers which parts of a site they should not visit. A sitemap lists the pages a site wants crawlers to find.

Can a robots.txt file keep a page private?

No. The file is public, and anyone who knows a page address can open it in a browser.

How often should a robots.txt file be checked?

It should be checked after every redesign, platform change, plugin change, or large content change, and at least once a year even if nothing has changed.

For the wider picture of running the site, our guide to the best tools for managing a small business website SEO in 2027 covers the tools that check crawling, indexing, and ranking together.

The bottom line

A business website robots.txt file is a small, plain text set of instructions that tells search engine crawlers where they may go and where they should stay away. It is useful for keeping crawlers away from admin pages, cart pages, and internal search results, so that crawl time goes to the pages that earn customers.

The practical habit is simple: know where the file lives, check it after every change to the site, keep it in agreement with the sitemap, and test every edit before it goes live. A file that is checked regularly stays out of the way, and a file that is never checked is the one that quietly hides a whole shop from search results.

Note: This article explains how a robots.txt file works in general. Check the current guidance from the search engine used by the site before changing a live file, and test every edit with a robots.txt tester first.

on this page