In plain words
The file sits at yoursite.kz/robots.txt and is read by search crawlers first. It contains rules for different crawlers: which directories to block from scanning, which to open and where the sitemap is. The rules are written with the User-agent, Disallow and Allow directives.
It's important to understand that this is a request, not protection. Well-behaved search crawlers follow it, but malicious actors and some programs ignore it. You can't hide secret information this way; passwords and access settings are needed for that.
How it works
A typical setup for a business site: block service sections such as the admin panel, cart, internal search results and pages with sorting parameters so the crawler doesn't waste time on duplicates. Leave everything else open and give the path to sitemap.xml with the Sitemap directive.
Search engines cache the file and re-read it periodically, so changes don't take effect immediately. After editing, it is useful to check the file in webmaster panels, which show which addresses are allowed or blocked for a given crawler.
Why a business owner should care
A correct file saves your "crawl budget," the time a crawler is willing to spend on your site. On large catalogs this affects indexing speed. For small sites it is more important to do no harm: the main problem is accidentally blocked important pages.
A classic mistake is leaving development settings in place: a test site has the whole site blocked, and after launch nobody replaces the file. The site stays out of search results for months, and the owner doesn't understand why.
A real-world example
After launching a new site, a clinic in Pavlodar hadn't appeared in search for two months. It turned out the file still had the "Disallow: /" rule set during development. After the file was replaced, the pages were indexed within a couple of weeks.
Common mistakes
- Leaving a block on the whole site after testing
- Blocking style and script files, which prevents the crawler from seeing the page
- Treating robots.txt as protection from access
- Not specifying the sitemap
- Confusing a ban on scanning with a ban on indexing