Skip to content

Check a website for broken links

Terminal window
damdit-cli project create --name Example --production https://example.com/
damdit-cli audit Example
damdit-cli issues Example --rule navigation.link.
damdit-cli issues Example --rule url.

The audit opens up to 500 pages in a browser and checks up to 5,000 addresses it finds in them: links between pages, links to other websites, images, scripts and stylesheets. The two issues commands list what failed: navigation.link. the links (a broken link to another website, a link that goes nowhere, a link text that says nothing), url. the addresses of the website itself that answer with an error. First time? Install Damdit CLI and add your key.

Terminal window
damdit-cli occurrences Example <issueId>

Each occurrence names the page the link is on and the address it points to, with the status the address answered.

Terminal window
damdit-cli audit Example
damdit-cli compare Example

compare says what is Resolved, Still detected, New or Inconclusive. A link you removed often comes back as Inconclusive: nothing points to that address any more, so the audit has nothing to check.

  • Addresses beyond the first 5,000 are listed in Coverage as not checked.
  • A website behind bot protection may refuse the audit. Then nothing is checked and Damdit says so: see Troubleshooting.

In an AI agent, the same steps are the MCP tools run_audit, list_issues and list_occurrences: AI agents.