Crawling

How NodeLensBot reads robots.txt, and how to block it

NodeLensBot is the crawler behind NodeLens. Its user agent, how it follows robots.txt and crawl-delay, and how a site owner can block it or opt out.

On this page
  1. How to recognise it
  2. How it reads robots.txt
  3. Crawl-delay
  4. Steps: block NodeLensBot from your site
  5. Opt out by email
  6. What NodeLens users see
  7. Questions

NodeLensBot is the crawler that reads a site when you start a crawl in NodeLens. It always follows the Disallow rules in robots.txt, in every crawl mode, and you can’t turn that off. This page is for you as a NodeLens user, and for site owners who see NodeLensBot in their logs.

How to recognise it

  • User agent: NodeLensBot/0.1.0 (+https://nodelens.app/bot). The number is the crawler’s version and changes with releases, so match on NodeLensBot.
  • robots.txt token: NodeLensBot.
  • The IP address and the full rules are on the NodeLensBot page.

How it reads robots.txt

  • It reads /robots.txt once at the start of each crawl, and once for each subdomain it reaches, up to 50 hosts in all. Past that, it skips the extra subdomains.
  • It follows the NodeLensBot group if there is one. If not, it follows the User-agent: * group. A NodeLensBot group replaces the * group, so repeat any * rules you still want it to follow.
  • It reads the first 500 KB of the file. The rest is ignored.
  • If robots.txt returns 404 or another 4xx error, it treats the whole site as allowed.
  • If robots.txt returns a 5xx error, a 429, or no answer, it tries again twice. If it still fails, it doesn’t crawl that site or subdomain.
  • It reads the sitemaps listed in robots.txt.

Crawl-delay

In polite mode, NodeLensBot honours a Crawl-delay for NodeLensBot (or *), up to 30 seconds. With a crawl-delay set, it uses 1 connection. A longer delay is treated as 30 seconds.

Fast mode doesn’t apply your crawl-delay. It still obeys your Disallow rules. Fast mode only runs on paid crawls of a site the customer has verified. See crawl again.

Steps: block NodeLensBot from your site

  1. Open your site’s robots.txt.
  2. Add these two lines:
User-agent: NodeLensBot
Disallow: /
  1. Save it. The block applies from the next crawl that starts.

To block one folder, use Disallow: /staging/ instead. To slow it down, add Crawl-delay: 10 to the same group.

Opt out by email

To stop NodeLensBot for good, including crawls already running, email [email protected] with your domain. Each request is checked by hand, and you’ll be asked to show you run the site. The NodeLensBot page has the details and how long it takes. After an opt-out, any NodeLens crawl of your site is refused.

What NodeLens users see

What you see What it means What to do
“This site’s robots.txt returned an error, so NodeLens didn’t crawl it. Try again in a few minutes. You weren’t charged.” The site’s robots.txt gave a server error, so the crawl stopped before reading any page. Try again in a few minutes. If it keeps happening, the site’s owner needs to fix robots.txt.
“We couldn’t crawl example.com” with “0 pages were fetched.” robots.txt may block NodeLensBot, or a firewall keeps crawlers out. Check robots.txt for a NodeLensBot or * group with Disallow: /.
“This site has asked not to be crawled.” The site’s owner opted out. NodeLens can’t crawl this site.
“This site can’t be crawled (it didn’t answer, or robots.txt blocks it).” The address can’t be crawled. Check the address. See crawling errors.

Pages robots.txt blocks never count toward what you pay; see crawl credits.

Questions

My robots.txt blocks all bots with User-agent: *. Will NodeLens crawl my site?

No. NodeLensBot follows the User-agent: * group when there's no NodeLensBot group. To let it in, add a NodeLensBot group that allows what you want crawled.

I changed robots.txt during a crawl. Does it apply?

Not to that crawl. NodeLensBot reads robots.txt once, at the start of each crawl, so the change applies from the next one.

Does fast mode ignore robots.txt?

No. NodeLensBot obeys Disallow rules in every mode. Fast mode only skips the crawl-delay, and only runs on a site the customer has verified they own.

Was this page helpful? If something is missing or wrong, email [email protected] and tell us what you were trying to do.

Last updated