Choose your organisation type

Robots.txt

What is robots.txt and what is it needed for?

Robots.txt is a simple text file kept in a website’s root directory, which tells search engine robots which parts of the website they may crawl and which they should avoid. It is important to understand that this is not a technical protection or access control measure. In other words, robots.txt acts as a recommendation to robots, not as a lock for visitors or automated systems.

On public-sector websites – municipality, school, library, museum or other public body portals – this file helps manage indexing more neatly. A properly configured robots.txt can reduce the appearance of unnecessary technical pages in search results, help search engines find the most important content faster and contribute to better overall website quality.

What is usually worth restricting?

Robots.txt is most often used so that search robots do not waste resources on low-value or technical pages. This is especially relevant for larger organisation websites, where there is a lot of repeated, dynamic or administrative content.

  • Administration areas

    The administration environment of a content management system is not intended for public indexing. Such addresses have no value for residents or website visitors, so including them in search results only increases information noise.

  • Internal search results pages

    If a website has a search function, its results pages are often generated automatically and can create many almost identical URL addresses. Such pages are usually not useful for external visitors, and indexing them can negatively affect the clarity of the website structure.

  • Duplicated or technical content

    Some websites have print versions, filtering parameters, test pages or other technical addresses. If they are indexed, search engines may find it harder to understand which page is the main one and the most relevant.

  • Temporary or unfinished pages

    Public-sector organisations often prepare new project, public procurement or event pages before they are published. If such pages accidentally become visible to robots, they may be indexed before the content is fully ready.

What can’t robots.txt do?

It is very important not to confuse robots.txt with security measures. This file does not protect sensitive information, does not hide documents from people and does not ensure that specific content cannot be accessed directly by entering the link. If a website contains restricted-use information, it must be protected with real safeguards: login, permission management, server restrictions or other technical solutions.

This is especially relevant in relation to GDPR requirements. If a page or document contains personal data, a robots.txt file alone is not enough. Personal data protection must be ensured in the system itself, not by relying on a search robot politely not visiting the specified address.

The benefit of robots.txt for public-sector websites

State and municipality institutions often manage large, multi-layered websites that publish legal information, news, documents, service descriptions, forms and archive content. On such websites, it is important that search engines first find information relevant to residents: contacts, services, the procedure for submitting requests, opening hours, registration forms or public notices.

Used properly, robots.txt helps keep the website structure clearer and reduces the chance that technical or low-usefulness pages appear in search results. This contributes not only to SEO, but also to a better user experience, because residents can more easily find what they are looking for.

Relation to accessibility and compliance

Although robots.txt does not directly address accessibility issues, it is part of an overall orderly website architecture. When only meaningful, clearly structured pages are indexed, it is easier to ensure consistent navigation, understandable titles and quality information presentation for different users.

For public-sector organisations, compliance with legal requirements and good practice is also important. Robots.txt should be combined with other solutions: meta tags, an XML sitemap, a proper page publication process and clear content management. This helps ensure that publicly visible content is accurate, up to date and managed responsibly.

Good practice

  • Do not block what needs to be found

    If a page is important for residents, for example a service description, reception procedure or contact information, it should not be forbidden to robots. Otherwise important information may become harder to find in search engines.

  • Do not use robots.txt as a protection measure

    If content should not be public, it must be technically protected. Robots.txt only instructs robots how to behave, but does not ensure real restriction.

  • Review the rules regularly

    As websites grow, their structure changes and new modules, document repositories or integrations appear. It is therefore worth checking periodically whether robots.txt still matches the website’s goals and does not block important content.

  • Combine it with other SEO and management tools

    Robots.txt alone is not enough for full indexing control. The best results are achieved when it is used together with sitemap.xml, canonical links, noindex solutions and a clear content management process.

Summary

Robots.txt is a small but important technical maintenance element of a website. It helps search engines better understand which parts of the website are important and which are only technical or supporting. On public-sector websites, this is especially useful for ensuring clarity, order and high-quality information delivery to residents.

However, robots.txt should not be treated as a security or GDPR compliance solution. It is a support tool that works best as part of a broader, responsibly managed website architecture.

Check your organisation's website

Enter the address: you'll see the score straight away, and we'll e-mail you the full report with a list of fixes.

No registration needed. You will see the result straight away. How do we check?