← 返回
开发者工具 中文

Deadlink

Scan websites and files for broken links with HTTP status details. Use when auditing links, finding broken URLs, validating references.
扫描网站和文件中的失效链接,返回 HTTP 状态信息。用于链接审计、发现失效 URL、验证引用。
bytesagain3
开发者工具 clawhub v3.0.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 636
下载
💾 5
安装
2
版本
#latest

概述

DeadLink — Dead Link Checker

Check URLs for broken links. Scan individual URLs, files containing links, or crawl websites. Generates reports with HTTP status codes.

Commands

CommandDescription
----------------------
check Check a single URL — shows HTTP status, redirect target if applicable
scan Extract and check all URLs found in a text file
site [depth]Crawl a webpage, extract all href/src links, and check each one
report Generate a timestamped report file from all URLs in a text file

Examples

# Check a single URL
deadlink check https://example.com/page
# → 200 OK

# Scan a markdown file for broken links
deadlink scan README.md
# → Extracts all http/https URLs and checks each one

# Crawl a website
deadlink site https://example.com 1
# → Fetches the page, extracts all links, checks each

# Generate a report file
deadlink report bookmarks.html
# → Creates deadlink-report-20240101-120000.txt

Status Codes

  • 2xx — OK (alive)
  • 3xx — Redirect (alive, shows final URL)
  • 4xx — Client error (dead — 404 Not Found, 403 Forbidden, etc.)
  • 5xx — Server error (dead)
  • 000 — Connection failed (DNS error, timeout, unreachable)

Requirements

  • curl — must be installed and in PATH
  • Network access to check URLs

Notes

  • Timeout: 10 seconds per URL (5s connect timeout)
  • URLs are extracted using regex pattern matching for http:// and https:// links
  • The site command does basic HTML link extraction (href and src attributes)
  • Reports are saved as plain text files in the current directory

版本历史

共 2 个版本

  • v3.0.0 当前
    2026-03-29 16:56 安全 安全
  • v1.0.5
    2026-03-19 07:22

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,758
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,933
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,966