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 may or may not crawl. Crucial for efficient crawl budget and SEO control.

What is robots.txt?

Robots.txt is een tekstbestand dat je in de hoofdmap van je website plaatst om zoekmachines te instrueren welke delen van je site ze wel of niet mogen indexeren. Het bestand werkt als een toegangscontrole: elke zoekmachine-bot leest dit bestand voordat hij pagina's gaat crawlen. Voor MKB-bedrijven is robots.txt vooral relevant om crawlbudget efficiΓ«nt te sturen, gevoelige pagina's af te schermen en technische SEO-problemen te voorkomen.

How robots.txt works in practice

When a search engine such as Google visits your website, the bot first checks to see if a robots.txt file exists at jouwdomein.nl/robots.txt. In that file are lines 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 administration pages. The file is publicly readable, so anyone can see which parts you're 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 Web site owners and search engines to save bandwidth and respect privacy. At the time, 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 matters. In addition, you prevent internal search results, test environments or thank-you pages from ending up in the index, reducing your duplicate content risk.

What robots.txt brings to technical SEO

In de praktijk zien we bij MKB-klanten vaak dat een goed ingestelde robots.txt drie directe voordelen biedt. Ten eerste: snellere indexatie van nieuwe content, omdat Google zijn crawlbudget besteedt aan relevante pagina's in plaats van aan paginering of filters. Ten tweede: minder ruis in Search Console, omdat je geen meldingen krijgt over geblokkeerde CSS of irrelevante URL's. Ten derde: betere controle over wat wel en niet vindbaar is, bijvoorbeeld door een staging-omgeving of klantportaal buiten de index te houden. Een doordachte SEO-strategie begint vaak met het opschonen van de robots.txt, zodat crawlers efficiΓ«nt je site kunnen verkennen en de juiste pagina's prioriteren.

Applications of robots.txt

Now that you know what robots.txt is and how it works, let's look at actual situations in which SMBs 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

Een webshop met 800 producten en 50 filtercombinaties per categorie kan snel duizenden URL's genereren. Google crawlt niet alles in één keer. Door in robots.txt filter-URL's, sorteringen en paginering te blokkeren, dwing je de bot om eerst productpagina's en categorieën te indexeren. In de praktijk merken we dat webshops hierdoor binnen twee weken nieuwe producten sneller in de index krijgen. Een voorbeeld: een tuincentrum in Gelderland blokkeerde alle URL's met '?orderby=' en '?filter_kleur=', waardoor Google zijn budget verschoof naar seizoensproducten. Resultaat: 30% snellere indexatie van nieuwe artikelen tijdens het voorjaarsseizoen. Let op: blokkeer nooit je hoofdcategorieën of belangrijke landingspagina's, want dan verdwijn je uit Google.

Shield internal search results and thank you pages

Veel bedrijven hebben een zoekfunctie op hun site die URL's genereert zoals '/zoeken/?q=tuinstoelen'. Als Google die pagina's indexeert, concurreer je met je eigen productpagina's en lever je een slechte gebruikerservaring. Hetzelfde geldt voor dankpagina's na een formulier of bestelling: die zijn bedoeld voor één bezoeker, niet voor organisch verkeer. Door 'Disallow: /zoeken/' en 'Disallow: /bedankt/' in je robots.txt op te nemen, houd je die pagina's buiten de index. Een B2B-dienstverlener in Nijmegen zag zijn bounce rate dalen met 12% nadat hij interne zoekresultaten blokkeerde, omdat bezoekers niet meer op lege zoekpagina's landden via Google. Vergeet niet om ook je XML-sitemap te controleren: geblokkeerde URL's horen daar niet in.

Staging environments and test pages off index

Ontwikkelaars werken vaak op een subdomain zoals staging.jouwbedrijf.nl of in een map zoals /test/. Als die omgeving geen wachtwoordbeveiliging heeft, kan Google hem indexeren. Dat leidt tot duplicate content en verwarring bij bezoekers die per ongeluk op de testversie landen. Door op je staging-omgeving een aparte robots.txt te plaatsen met 'User-agent: * / Disallow: /', blokkeer je alle bots. Een andere aanpak is om in je live robots.txt de map '/dev/' of '/staging/' te blokkeren. Bij webprojecten van Monkey Vision standaardiseren we dit: elke staging-omgeving krijgt een volledige Disallow, zodat klanten nooit in de problemen komen met dubbele indexatie tijdens de bouwfase.

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

Robots.txt is suitable for pages that 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. Want to really 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 use robots.txt for privacy-sensitive URLs, but that's a misconception. 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 to your business? Monkey Vision helps SME entrepreneurs with web design, SEO and smart digital solutions. Schedule a no-obligation meeting and find out what's possible for you.

Schedule an introduction

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 out of Google? Then use noindex, not robots.txt. Google itself recommends never using both at the same time, because then the bot can't read the noindex tag.

Both approaches work, but parameter handling in Google Search Console is more specific and flexible for ecommerce stores with filter URLs. With robots.txt you block whole directories or patterns, while in Search Console you can specify per parameter whether Google should ignore it. For example: you want '?color=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 ecommerce store projects: robots.txt for coarse blocking (such as /cart/ or /checkout/) and parameter handling for refinement. Note that parameter handling is less prioritized by Google since the advent 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 those 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 curiosity seekers 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 don't notice it until weeks later when your organic traffic plummets.

The best first step depends on your current situation and goals. Do you have an ecommerce store with a lot of filter URLs or a site with internal search results appearing in Google? Then it pays to optimize your robots.txt. Schedule a free 30-minute SEO scan at Monkey Vision, in which we'll do a live analysis of your current robots.txt, detect crawlbudget waste and give you three immediate areas for improvement. You'll also get an honest assessment of whether robots.txt optimization 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 at Nijmegen, specializing in web design, SEO, and AI automation for small and medium-sized businesses. The knowledge base has been compiled by our team of online strategists and is continuously updated based on current insights.

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