What is a robots.txt file on a business website?

The short answer

A robots.txt file tells search engine crawlers which URLs the crawler can access on your site. Google Search Central's introduction to robots.txt says this is used mainly to avoid overloading your site with requests; it is not a mechanism for keeping a web page out of Google. To keep a web page out of Google, Google says to block indexing with a noindex instruction or to password-protect the page.

Your robots.txt file also decides whether ChatGPT can find your business website, through OpenAI's OAI-SearchBot.

What it can and cannot do

Google says a robots.txt file is used primarily to manage crawler traffic to your site. For a regular web page, that can mean keeping the crawler away from unimportant or similar pages if you think the server will be overwhelmed, not hiding the page from search results.

The limit matters for small business sites. Google warns that you should not use a robots.txt file as a means to hide web pages from Google Search results. If other pages point to your page with descriptive text, Google could still index the URL without visiting the page. If a web page is blocked with a robots.txt file, its URL can still appear in search results, but the search result will not have a description.

Google also notes that the instructions in a robots.txt file cannot enforce crawler behavior. Googlebot and other respectable crawlers obey them, but other crawlers might not. If you want to keep information secure, password-protect the private files on your server.

If you use a website builder, you might not edit the robots.txt file directly. The builder may instead offer a search settings page that tells search engines whether to crawl a page.

What East Texas owners should actually check

If your goal is to keep a draft, a private client page or a thank-you page out of Google, a noindex instruction or a password is the tool Google describes, not a crawl block alone. If your goal is to help Google understand the public site, make sure important pages are crawlable and that you still have a clear XML sitemap and a sensible canonical URL on the pages you do want found.

A robots.txt mistake can also hide resources the crawler needs to understand a page, such as important style or script files. If those files are blocked, Google says it may not do a good job of analyzing pages that depend on them. That is a website care check, not a reason to paste a file from a template without reading it.

Ask for a free site review.

About the author

Steven Wilson is the founder of Garnet Web Works, based in the Livingston area. He builds websites and works on search visibility for East Texas businesses.

Want this done for your business?

Send us your website. We'll show you where you stand on Google and what it would take to move up.

Get a free site review