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.