Every grade lists its sample, method and date.
Grade your own site free
Sections
HomeRankingsGrade Your SiteGraded SitesGuidesHow We GradeMap ListingsBusiness WebsitesTradesReputationData VendorsPrivacy

Home > Guides > Robots.txt for a Small Business Website

Robots.Txt for a Small Business Website

A small business robots.txt should answer at yoursite.com/robots.txt, allow search engines to crawl the site and name your sitemap. Three lines is enough for most local sites, and the biggest risk is a leftover line that blocks everything.

What We Found

96% of the 198 local business sites we graded had a robots.txt file that answered, and 98% had a home page that allowed indexing. Those are among the most passed checks in our grader. The few that fail usually fail hard. Numbers are on the Business Website Data Grades ranking.

A Safe File to Copy

User-agent: *
Allow: /
Sitemap: https://www.yourbusiness.com/sitemap.xml

Mistakes, Worst First

1. Blocking The Whole Site

This line tells every crawler to stay out. It often gets left behind after a site is built on a staging server.

User-agent: *
Disallow: /

The fix. Remove the slash after Disallow or delete the line.

2. A Noindex Tag On The Home Page

Robots.txt controls crawling. A noindex meta tag controls whether a page can show in results. A builder setting like discourage search engines adds noindex to every page. Look in your page source for this.

<meta name="robots" content="noindex">

Google's guide to noindex explains the difference.

3. No File At All

A missing robots.txt does not block anything, but it means you cannot point crawlers to your sitemap. Our grader counts a file that answers.

4. Blocking CSS And Scripts

Old advice said to block theme folders. Search engines need those files to see your page the way a person does. Do not block them.

Google's robots.txt intro covers every rule.

Check your robots.txt and indexing. It runs the same 22 checks we used on every site in our rankings and shows which ones you missed.

Questions People Ask

Do I need a robots.txt file?

It is not required, but it is the standard place to list your sitemap, and a missing file makes some tools report errors.

Can robots.txt keep a page out of Google?

Not reliably. It stops crawling, but a blocked page can still be indexed from links. Use a noindex tag to keep a page out of results.

Where does robots.txt go?

In the root of your domain, so it loads at yourdomain.com/robots.txt. It does not work in a subfolder.

Should I block AI crawlers in robots.txt?

That is a business choice. Blocking them can keep your pages out of AI answers that cite sources, so decide what you want before adding rules.

Related Guides

Sources

Grade your site free | All guides

What's New

November 22, 2026
First test run. 244 businesses checked against their own websites.

Coming next
Bing listings and data vendors on the same truth set.

Grade A Site
Where Our Sample Comes From

Las Vegas, Phoenix, Dallas and Atlanta.

Open in Google Maps


Home | Rankings | Grade Your Site | Graded Sites | Guides | How We Grade

Copyright 2026 DataGraded. Site by Clickflame.