Robots.txt

Prev Next

A robots.txt file is a text file placed at the root of your knowledge base site that communicates with web crawlers and automated agents. It specifies which pages or sections of your site crawlers are allowed or not allowed to access. Search engines such as Google, Bing, and Yandex read this file before crawling your site to determine what content they should index.

NOTE

A web crawler, also known as a spider or spiderbot, is an automated program that navigates the web and collects information about websites. Crawlers open pages, collect data such as links, broken links, sitemaps, and HTML code, and send it to their search engine's servers for indexing.

In Document360, the robots.txt file is accessible and editable directly from the knowledge base site settings. It applies to your entire knowledge base site, not individual articles or categories.


When to use Robots.txt

  • Prevent search engines from crawling and indexing internal, admin, or restricted sections of your knowledge base.
  • Block specific search engines from indexing your site entirely, for example, to control which search engines surface your content.
  • Add crawl delay rules when your site is experiencing high traffic and you want to reduce the load caused by bot activity.
  • Pair robots.txt with your sitemap to give crawlers a clear map of what to index and what to skip.
  • Understand that blocking crawling is not the same as de-indexing. If you block all crawlers using Disallow: /, search engines cannot read a noindex tag on your pages. This means URLs already discovered via external links may still appear in search results, often with a “No information is available for this page” message. To fully de-index your knowledge base, you need to allow crawling and use a noindex tag.

NOTE

Robots.txt controls crawler access at the site level. To exclude individual articles or categories from search results, use the Search visibility settings instead. Learn about Search visibility


Access Robots.txt in Document360

  1. Navigate to Settings () in the left navigation bar.
  2. Go to Knowledge base site > AI & search optimization (GEO/SEO).
  3. Locate Robots.txt and click Edit. The Robots.txt settings panel appears.
  4. Enter your rules.
  5. Click Update.
Robots.txt configuration panel in the knowledge base site settings

Common Robots.txt rules

Block all crawlers from a specific path

Use this to prevent crawlers from accessing admin data or restricted sections.

User-agent: *
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml
  • User-agent: * applies the rule to all crawlers.
  • Disallow: /admin/ prevents crawlers from accessing the admin path.
  • Sitemap: provides the sitemap URL so crawlers can discover all indexed pages efficiently.

Block a specific search engine

Use this to prevent a particular search engine from crawling your site.

User-agent: Bingbot
Disallow: /
  • User-agent: Bingbot targets only the Bing search engine crawler.
  • Disallow: / prevents Bingbot from crawling any page on the site.

Add a crawl delay

Use this to slow down the crawl speed of bots when your site is under high traffic load.

User-agent: *
Crawl-delay: 10
  • Crawl-delay: 10 instructs crawlers to wait 10 seconds between requests.

Best practices

  • Always include your sitemap URL in the robots.txt file so crawlers can easily discover your indexed pages.
  • Block pages that provide no value to search engine users, such as admin paths, login pages, or duplicate content paths.
  • Do not use robots.txt as a security measure. It is a public file and does not prevent unauthorized human access. Use access control settings for that.
  • Avoid blocking CSS or JavaScript files that search engines need to render and understand your pages.
  • Follow the format guidelines from Google Search Central to ensure your file is valid.
  • Test your robots.txt rules using Google Search Console's robots.txt tester before deploying changes.

FAQ

What is the difference between Robots.txt and Search visibility settings in Document360?

Robots.txt applies at the site level and controls which paths or sections crawlers can access across your entire knowledge base. Search visibility settings apply at the article or category level and let you exclude specific content from external search engines, the knowledge base search bar, or Eddy AI assistive search independently. Use both together for precise control over what gets indexed.

How do I remove my Document360 project from the Google search index?

To remove your knowledge base from Google search results permanently, complete the following steps. All three steps are required. The noindex tag alone is not enough without allowing crawling, and blocking crawling without a noindex tag does not remove already-indexed URLs from search results.

Step 1 — Add a noindex tag to your knowledge base

In the Document360 portal, go to Connections > Integrations > Custom HTML and click Add.

Enter a description such as Noindex — block search engine indexing. Select In the header (above </head>) as the insertion position. Paste the following tag and click Add.

<meta name="robots" content="noindex, nofollow">

This applies to every page on your knowledge base site. You do not need to update each article individually.

Step 2 — Allow search engines to crawl your site

Go to Settings > Knowledge base site > AI & search optimization (GEO/SEO), click Edit next to Robots.txt, and update it to allow crawling.

User-agent: *
Allow: /

This is required because search engines can only read the noindex tag if they are permitted to crawl the page. If crawling is blocked, the noindex tag is never seen, and Google may continue to list URLs it has discovered from external links.

How do I prevent tag pages from being indexed by search engines?

Go to Settings () > Knowledge base site > Article settings and SEO > SEO tab, click Edit in Robots.txt, paste the following code, and click Update.

User-agent: *
Disallow: /docs/en/tags/

Does Robots.txt prevent all crawlers from accessing blocked pages?

Robots.txt is a voluntary standard. Most reputable search engine crawlers such as Googlebot and Bingbot respect it, but malicious bots may ignore it entirely. Do not rely on robots.txt to protect sensitive or private content. Use access control settings for that purpose.

Should I include my sitemap URL in the robots.txt file?

Yes. Including the sitemap URL in your robots.txt file helps crawlers discover all the pages on your knowledge base site efficiently. Add it using the following format: Sitemap: https://yourdomain.com/sitemap.xml.