Internal linking and crawl depth audit

Map the internal link graph from a crawl: orphan pages, deep click depth, dead ends, pages linked only from navigation, nofollow-only inlinks and a link score compared with the site median.

What it does

Structure

crawl-site follows same-host links from a start URL and keeps every link in one SQLite file. Each page gets its inlinks, outlinks, click depth from the start URL and the position of each link: navigation, footer or body copy. That separates pages that are linked from content from pages that only appear in a menu.

  • Inlinks and outlinks per page
  • Click depth from the start URL
  • Link position: navigation, header, sidebar, footer, content
  • Discovery path of each page

Weak spots

The checks report pages that no internal link reaches, dead ends with no outgoing links, pages linked only from boilerplate and pages whose every inlink is nofollow. A link score shows pages far below the site median. The registry gives each finding a fix, such as a contextual link from a related page.

  • Orphan pages and dead ends
  • Pages linked only from navigation, header, sidebar or footer
  • Nofollow-only inlinks
  • Pages too many clicks from the start URL

Anchors

Generic anchor text such as here, read more or click here tells neither readers nor search engines what the target is about. Internal links with empty anchor text are reported as well, unless an accessible label is provided.

  • Generic anchor text
  • Internal links with empty anchor text
  • Anchor text shown with the source page

Three steps, one saved scan

  1. Crawl the site from one start URL

    crawl-site follows same-host links from the start URL, respects robots.txt by default and stores every link in one SQLite file.

  2. Map the link graph

    Each page gets its inlinks, outlinks, click depth from the start URL and the position of each link: navigation, footer, or body copy.

  3. Flag orphans, dead ends and weak links

    Checks report pages no link reaches, dead ends, pages linked only from boilerplate or nofollow, and anchors such as 'here'.

Checks in this feature

CheckWhat it meansSeverityEvidence
ORPHAN_PAGEThe page has no internal inlinks in the crawlImportantInlink count for the URL
DEEP_CLICK_DEPTHThe page is more clicks from the start URL than the configured floorImportantClick depth and the shortest path from the start URL
NO_INTERNAL_OUTLINKSDead-end page with no internal links going outImportantPage URL and outlink count
INLINK_BOILERPLATE_ONLYThe page is linked only from navigation, header, sidebar or footer, never from body contentImportantInlink positions by template area
ONLY_NOFOLLOW_INLINKSEvery internal link to the page is nofollowImportantInlink list with rel attributes
LOW_LINK_SCOREInternal link score is far below the site medianTipPage score against the site median
GENERIC_ANCHOR_TEXTAnchor text such as 'here', 'read more' or 'click here' does not describe the destinationTipSource page and anchor text
Also in the check registry
INTERNAL_LINK_NO_ANCHORSITEMAP_ORPHAN

One command

bash
spiderhead crawl-site --url https://example.com --max-urls 1000 --scan-out ./scans/links.sqlite

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A start URL for crawl-site
  • Or an external crawler Inlinks exports for the audit path
  • A full crawl for graph-wide claims

Limits

  • A partial crawl cannot prove an orphan: the missing pages may hold the only link
  • On a partial crawl, INLINK_BOILERPLATE_ONLY is skipped and LOW_LINK_SCORE is withheld
  • Links added by JavaScript are seen only if the crawl renders pages
  • It does not suggest which pages should link to which beyond the fix text

Questions

Does it change anything on my site?
No. The crawl only reads pages. It follows robots.txt by default, and you can set report-only or ignore with --robots. The results are a SQLite file you review yourself.
How many pages does it crawl?
The default cap is 200 URLs. Raise it with --max-urls, up to 1,000,000. Use --max-urls 0 for a full crawl. A stopped crawl can be continued with --resume.
Is the result complete if the crawl stops early?
Not for graph-wide claims. On a partial crawl the missing pages could hold the only link to a page, so checks such as INLINK_BOILERPLATE_ONLY are skipped and LOW_LINK_SCORE is withheld. Run a full crawl before you trust the score.
How fast does it crawl?
You set the rate with --max-urls-per-second or --min-delay. A rate of 1 to 2 requests per second is a polite starting point for a live site.
Does it use sitemaps?
Yes, as an extra source of URLs: --sitemap seeds or reconciles XML URLs, and a sitemap URL with no internal inlink is reported as a sitemap orphan.

Try it on your own site