Skip to Content
RelevanBot

RelevanBot

RelevanBot is the web crawler of Relevan. It fetches the pages of a website for a search index that the owner of the website set up in Relevan. It reads only the sitemaps that the owner adds, and it fetches only pages on a domain that the owner verified.

How to identify RelevanBot

RelevanBot sends this user agent string with each request, also when it renders a page that needs JavaScript:

Mozilla/5.0 (compatible; RelevanBot/1.0; +https://docs.relevan.dev/crawler)

The robots.txt token is RelevanBot.

What RelevanBot fetches

  • Only verified domains. A Relevan customer must prove control of a domain before RelevanBot fetches from it. The proof is a DNS TXT record at _relevan-verify.<domain>. A verified domain covers the domain and its subdomains. RelevanBot checks the record again before each sync. When the record is gone, the sync stops and RelevanBot fetches nothing.
  • Only the sitemap and the pages it lists. RelevanBot reads the sitemap (or the sitemap index and its child sitemaps) that the customer added, and fetches the pages that the sitemap lists. It does not follow the links in a page.
  • Only the verified domain. RelevanBot refuses a child sitemap or a redirect that leads to a host outside the verified domain. It fetches only http and https URLs on the default ports.
  • Only changed pages after the first sync. RelevanBot syncs each sitemap about once a day. It fetches a page again only when the page is new or its lastmod in the sitemap changed. A page with no lastmod gets a conditional request (If-None-Match and If-Modified-Since) at most once every 7 days.

How RelevanBot limits its load

  • At most 2 concurrent requests to one host.
  • At least 500 ms between the starts of two requests to one host.
  • It obeys the Crawl-delay of the RelevanBot group in robots.txt, up to 10 seconds.
  • A request times out after 20 seconds.

robots.txt

A sync runs in parts. RelevanBot reads /robots.txt from each host at the start of each part of a sync. It obeys the rules of the User-agent: RelevanBot group. When robots.txt has no group for RelevanBot, it obeys the User-agent: * group. RelevanBot skips a disallowed page and does not index it.

Block RelevanBot

To block RelevanBot from the whole site, add this group to robots.txt:

User-agent: RelevanBot Disallow: /

To block one part of the site:

User-agent: RelevanBot Disallow: /private/

To make RelevanBot slower:

User-agent: RelevanBot Crawl-delay: 5

If you own the domain and set up the crawl yourself, you can also stop it in Relevan: delete the source in the console, or remove the _relevan-verify TXT record. Without the record, the next sync stops before it fetches a page.

Contact

To report a problem with RelevanBot, email hello@relevan.dev. Include the host and the time of the requests.

Last updated on