# Links audit rules

> Find all 27 Sonjoo Links rules by ID, with the evidence and inputs each check uses.

Canonical documentation: <https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/links/>

Sonjoo groups 27 checks under **Links** (`links`). Select this category with `sonjoo audit <url> --categories links`, or pass the category ID in an [HTTP audit request](https://sajaddehshiri.ir/sonjoo-seo-audit/api/reference/#start-request-options).

This category has weight **8** in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

[All audit categories](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/) · [Rule settings and interpretation](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/#use-a-rule-id)

## links-broken-internal

Check distinct internal HTTP(S) targets for observed missing or server error responses. Uncertainty cannot establish availability or permanent absence.

**Inputs.** Local transport can probe an internal link target.

**Evidence.** Sources, target URL/status, and checked or unavailable counts.

Base scoring weight **1** when measured.

## links-external-valid

Verify eligible HTTP(S) destinations on a different host, distinguish confirmed errors from blocked probes, and observe explicit budget and enablement settings.

**Inputs.** The external host alias resolves only to the same local test server.

**Evidence.** Verified target total, failed URL/status, and reasons for unverified links.

Base scoring weight **1** when measured. Has configurable thresholds or options.

## links-internal-present

Recommend at least one hyperlink to another page on the site.

**Inputs.** A document collected for audit.

**Evidence.** Internal target count and example resolved URL.

Base scoring weight **1** when measured.

## links-nofollow-appropriate

Review possible unqualified sponsorship and inappropriate use of nofollow on internal navigation.

**Inputs.** A document collected for audit.

**Evidence.** Affected link and qualification concern.

Base scoring weight **1** when measured.

## links-anchor-text

Identify empty, one-character or generic text used for ordinary crawlable links.

**Inputs.** A document collected for audit.

**Evidence.** Issue description and affected URL/text.

Base scoring weight **1** when measured.

## links-depth

Report minimum known discovery hops from the crawl entry.

**Inputs.** Production crawler collects a connected local route graph.

**Evidence.** Discovered depth and entry URL.

Base scoring weight **4** when measured.

## links-dead-end-pages

Identify pages with no outgoing internal links to another URL.

**Inputs.** A document collected for audit.

**Evidence.** Outgoing internal link count.

Base scoring weight **1** when measured.

## links-https-downgrade

Flag navigation from an HTTPS page to an explicitly insecure HTTP destination.

**Inputs.** A document collected for audit.

**Evidence.** Affected HTTP link, domain and link count.

Base scoring weight **1** when measured.

## links-external-count

Count outgoing external hyperlink elements and flag an unusually large collection for review.

**Inputs.** A document collected for audit.

**Evidence.** Link and unique-domain count.

Base scoring weight **1** when measured.

## links-invalid

Flag empty placeholders, JavaScript pseudo-links and malformed URL references when used for navigation.

**Inputs.** A document collected for audit.

**Evidence.** Affected href and classification.

Base scoring weight **1** when measured.

## links-tel-mailto

Review apparent format errors in telephone and mailto destinations using a deliberately limited input heuristic.

**Inputs.** A document collected for audit.

**Evidence.** Malformed telephone or mailto target and reason.

Base scoring weight **1** when measured.

## links-redirect-chains

Probe internal link URLs for recorded redirect hops and flag extra traversal.

**Inputs.** The internal link probe returns response and redirect data.

**Evidence.** First and final URLs, hop count, and path for long chains.

Base scoring weight **1** when measured.

## links-orphan-pages

Report audited non-entry pages without inbound links from collected pages.

**Inputs.** Production crawler or list crawl collects at least two peer documents.

**Evidence.** Distinct source URLs and inbound count.

Base scoring weight **6** when measured.

## links-localhost

Find explicit URL references to loopback or local development services without treating matching text in public paths as a host.

**Inputs.** A document collected for audit.

**Evidence.** Affected element and URL, matched count.

Base scoring weight **8** when measured.

## links-local-file

Flag file URL schemes and unambiguous unescaped Windows drive paths rather than conflating URL pathname segments with local files.

**Inputs.** A document collected for audit.

**Evidence.** URL/attribute and path classification.

Base scoring weight **8** when measured.

## links-broken-fragment

Resolve same-document fragments using HTML's matching rules, including percent-encoded Unicode and the special top target.

**Inputs.** A document collected for audit.

**Evidence.** Checked fragment count and missing fragments with source links.

Base scoring weight **6** when measured.

## links-excessive

Count eligible anchor elements and report exceptionally dense link lists according to Sonjoo policy.

**Inputs.** A document collected for audit.

**Evidence.** Link count and crossing threshold.

Base scoring weight **5** when measured.

## links-onclick

Detect navigation that depends entirely on a static onclick handler rather than a crawlable anchor's href.

**Inputs.** A document collected for audit.

**Evidence.** Element and relevant handler summary.

Base scoring weight **5** when measured.

## links-whitespace-href

Identify whitespace-only or padded attribute values for authoring review.

**Inputs.** A document collected for audit.

**Evidence.** Whitespace category counts and raw href.

Base scoring weight **4** when measured.

## links-non-http-protocol

Recommend reviewing links opened by specialized URI schemes beyond web and communication controls.

**Inputs.** A document collected for audit.

**Evidence.** Recognized schemes and affected href.

Base scoring weight **4** when measured.

## links-inbound-all-nofollow

Review whether every observed inbound link declares nofollow.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Count of followed and nofollowed edges.

Base scoring weight **2** when measured.

## links-inbound-mixed-follow

Review a crawl page receiving both followed and nofollowed internal links.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Followed and nofollow counts and source URL.

Base scoring weight **2** when measured.

## links-inbound-low-quality

Review a page whose inbound edges are all nofollowed or originate from canonicalized-away peers.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Number of canonicalized and followed source edges.

Base scoring weight **3** when measured.

## links-inbound-anchor-text

Review targets whose observed followed inbound links all use generic labels.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Generic followed anchor count and source URL.

Base scoring weight **2** when measured.

## links-nofollow-internal

Surface explicit nofollow tokens on internal navigational links.

**Inputs.** A document collected for audit.

**Evidence.** Affected href and link text.

Base scoring weight **4** when measured.

## links-weak-inbound

Review non-entry pages with exactly one followed inbound link.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Count of eligible edges or single source URL/anchor.

Base scoring weight **3** when measured.

## links-chrome-inbound

Review targets that are reachable only from header, footer, or navigation chrome in the observed crawl.

**Inputs.** The crawl collects the target and its linking source pages.

**Evidence.** Editorial and total inbound counts.

Base scoring weight **4** when measured.
