Glossary

What is robots.txt

robots.txt is a small text file on a site that says which pages search engine crawlers should not scan. One extra line can knock your entire site out of search.

Monolith Studio editorial team2 min read

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

Shall we discuss your project?

Tell us in a few words what you need, and we'll suggest a solution and calculate the cost.

Discuss your project

FAQ

How does robots.txt differ from noindex?

The first restricts scanning; the second says a page should not be shown in results. To exclude a page from search, use noindex.

Does a small site need the file?

It's recommended: it is simple, and it lets you specify the sitemap and block service pages.

Didn't find your question? Message us and we'll reply within one business day.

Ask a question

Read also

Need help with this topic?

Tell us about your task in a couple of words and we will suggest where to start, and honestly tell you what you don't need.

Call+7 708 758 18 60Message usWhatsApp
CityAktobe · we work across all of Kazakhstan

Get a quote

We'll reply within 15 minutes with an approximate price.