robots.txt

robots file, robots text file, robot.txt, crawl instruction file
Robots.txt is a text file in the root of your website that tells search engines which pages they can or cannot crawl. Crucial for efficient crawl budget and SEO control.

What is robots.txt?

Robots.txt is a text file that you place in the root directory of your website to instruct search engines which parts of your site they may or may not index. The file acts as an access control mechanism: every search engine bot reads this file before it starts crawling pages. For small and medium-sized companies, robots.txt is particularly relevant for managing crawl budgets efficiently, shielding sensitive pages and preventing technical SEO issues.

How robots.txt works in practice

When a search engine such as Google visits your website, the bot first checks whether a robots.txt file exists at jouwdomein.nl/robots.txt. In that file are rules with 'User-agent' (which bot), 'Disallow' (do not crawl) and 'Allow' (do crawl). For example, a typical rule is 'User-agent: * / Disallow: /wp-admin/', meaning all bots should skip the WordPress admin pages. The file is publicly readable, so anyone can see which parts you are shielding. That makes it not a security measure, but an efficiency tool. Google Developers publishes the official specification and best practices on their robots.txt documentation.

Why robots.txt came into being and why it still matters today

The Robots Exclusion Protocol originated in 1994 as an informal agreement between website owners and search engines to save bandwidth and respect privacy. Back then, servers were slow and crawlers aggressive. Today, it is still relevant because Google allocates a limited crawl budget per site. If you have 500 product pages but Google crawls mostly your filter and sort pages, you're wasting that budget. With robots.txt, you direct the bot to what really counts. You also prevent internal search results, test environments or thank-you pages from ending up in the index, which reduces your duplicate content risk.

What robots.txt brings to technical SEO

In practice, we often see with SME clients that a well-configured robots.txt file offers three direct benefits. Firstly: faster indexing of new content, as Google spends its crawl budget on relevant pages rather than on pagination or filters. Secondly: less noise in Search Console, as you won’t receive notifications about blocked CSS or irrelevant URLs. Thirdly: greater control over what is and isn’t discoverable, for example by keeping a staging environment or client portal out of the index. A well-thought-out SEO strategy often begins with cleaning up the robots.txt file, so that crawlers can efficiently explore your site and prioritise the right pages.

Applications of robots.txt

Now that you know what robots.txt is and how it works, let's look at concrete situations in which SMEs deploy this file. The power is not in blocking everything, but in strategically steering search engines to the pages that bring conversion and avoiding pages that only cause noise.

Send crawl budget to commercial pages

An online shop with 800 products and 50 filter combinations per category can quickly generate thousands of URLs. Google does not crawl everything in one go. By blocking filter URLs, sorting options and pagination in robots.txt, you force the bot to index product pages and categories first. In practice, we’ve found that this enables online shops to get new products into the index more quickly within two weeks. An example: a garden centre in Greater London blocked all URLs containing β€˜?orderby=’ and β€˜?filter_kleur=’, causing Google to shift its crawl budget towards seasonal products. Result: 30% faster indexing of new items during the spring season. Please note: never block your main categories or important landing pages, as this will cause you to disappear from Google.

Shielding internal search results and thank-you pages

Many companies have a search function on their site that generates URLs such as '/search/?q=garden chairs'. If Google indexes those pages, you are competing with your own product pages and delivering a poor user experience. The same goes for thank you pages after a form or order: those are meant for a single visitor, not organic traffic. By including 'Disallow: /search/' and 'Disallow: /thank you/' in your robots.txt, you keep those pages out of the index. A B2B service provider in London saw its bounce rate drop by 12% after it blocked internal search results because visitors no longer landed on empty search pages via Google. Don't forget to check your XML sitemap too: blocked URLs don't belong there.

Staging environments and test pages off-index

Developers often work on a subdomain such as staging.yourcompany.co.uk or in a directory such as /test/. If that environment is not password-protected, Google may index it. This leads to duplicate content and confusion amongst visitors who accidentally land on the test version. By placing a separate robots.txt file on your staging environment with β€˜User-agent: * / Disallow: /’, you block all bots. Another approach is to block the β€˜/dev/’ or β€˜/staging/’ directory in your live robots.txt file. For web projects, Monkey Vision we standardise this: every staging environment is given a full β€˜Disallow’, so that clients never run into problems with duplicate indexing during the development phase.

When robots.txt is the right choice and when it is not

Robots.txt is suitable for pages you do not want crawled but do not contain sensitive information. The file is publicly readable, so anyone can see which folders you are blocking. Do you really want to secure a page? Then use password protection or a noindex meta tag in combination with access control. Robots.txt is also not suitable if you want to completely remove a page from the index that is already indexed: then you need a noindex tag or a 410 status code. In practice, you often see companies using robots.txt for privacy-sensitive URLs, but this is a misunderstanding. Google respects the block, but the URL can still appear in the index if external links point to it. In short: robots.txt directs crawlers, but does not guarantee privacy or complete deindexation.

Want to apply this in your company? Monkey Vision helps SME entrepreneurs with web design, SEO and smart digital solutions. Plan a no-obligation discovery call and discover what is possible for you.

Plan a discovery call

Frequently asked questions

No, robots.txt and a noindex tag work fundamentally differently. Robots.txt blocks the crawling of a page, so Google does not read the content but the URL can sometimes still appear in the index if external links point to it. A noindex meta tag, on the other hand, lets Google crawl the page but instructs the search engine not to show the page in search results. In practice, we find that companies often use robots.txt for efficiency (save crawl budget) and noindex for control (really keep page out of index). Want a page completely off Google? Then use noindex, not robots.txt. Google itself recommends never using both at the same time, as the bot will not be able to read the noindex tag.

Both approaches work, but parameter handling in Google Search Console is more specific and flexible for online shops with filter URLs. With robots.txt you block entire directories or patterns, while in Search Console you can specify per parameter whether Google should ignore it. For example: you want '?colour=red' to be ignored, but '?size=large' to be indexed. That works with parameter handling, not with robots.txt. In practice, we often use a combination in online shop projects: robots.txt for coarse blocking (such as /cart/ or /checkout/) and parameter handling for refinement. Note: parameter handling is less prioritised by Google since the rise of canonicals, so always test what works for your site.

The most common mistake is accidentally blocking your entire site with 'Disallow: /' without limiting it to a specific bot. This makes your site invisible to Google. A second mistake: blocking CSS and JavaScript files. Google needs these to render your page and rate it for mobile usability. Since 2015, Search Console has been warning about this. A third mistake: using robots.txt to hide sensitive content, when in fact the file is publicly readable and can lead curious people to those URLs. Always check your robots.txt with the tester in Google Search Console before putting it live. One typo can block your entire indexation, and you often only notice it weeks later when your organic traffic plummets.

The best first step depends on your current situation and goals. Do you have an online shop with many filter URLs or a site with internal search results appearing in Google? Then it pays to optimise your robots.txt. Schedule a free 30-minute SEO scan at Monkey Vision, in which we analyse your current robots.txt live, detect crawlbudget waste and give three direct points of improvement. You'll also get an honest assessment of whether robots.txt optimisation is a priority for your site or whether other technical SEO improvements deliver more impact. Not a sales pitch, but practical advice you can pick up this week.

About the author

Monkey Vision

Monkey Vision is a full-service digital agency based in London, specialising in web design agency, SEO and AI automation for SMEs. The knowledge base is compiled by our team of online strategists and continuously updated based on current insights.

Publication date: 26-04-2026
Last update: 27-04-2026