← 返回
安全合规 中文

Link Checker

Crawl web pages and detect broken links, redirects, and HTTP errors. Use when auditing site links, finding 404 errors, validating URLs before launch.
抓取网页并检测断链、重定向和HTTP错误。适用于审计站点链接、发现404错误及上线前验证URL。
xueyetianya
安全合规 clawhub v2.1.0 3 版本 99930.5 Key: 无需
★ 0
Stars
📥 1,438
下载
💾 25
安装
3
版本
#latest#productivity

概述

Link Checker

Check URLs for HTTP status codes, find broken links in documents, and track link health over time. Feed it a single URL, a file full of links, or a batch of addresses — it hits each one with curl, records the status code, and tells you what's alive and what's dead. Results are stored in ~/.link-checker/ so you can review history, pull stats, and export reports.

Commands

check

Check a single URL. Sends an HTTP HEAD request and returns the status code.

link-checker check <url>

Output includes status code, a human-readable label (OK, REDIRECT, CLIENT_ERROR, etc.), and an icon.

scan

Extract all URLs from a file (markdown, HTML, plain text — anything with http:// or https:// links) and check each one.

link-checker scan <file>

Uses grep to pull URLs, deduplicates them, then checks each. Prints a summary at the end with pass/fail counts.

batch

Check multiple URLs in one go. Pass them as arguments.

link-checker batch <url1> <url2> <url3> ...

report

Generate a report from the current session's results. Supports three formats.

link-checker report [txt|csv|json]

Default format is txt. Reports are saved to ~/.link-checker/report..

history

Display the last 50 check results from the history log.

link-checker history

Shows timestamp, status code, status label, and URL for each entry.

broken

Filter results to show only failed links — status codes 4xx, 5xx, timeouts, and connection errors.

link-checker broken

stats

Show statistics across all checks: total count, breakdown by status category (2xx, 3xx, 4xx, 5xx, timeout, error), success rate percentage, and the most common status codes.

link-checker stats

export

Export the full history log to a file. Supports csv, json, and txt.

link-checker export <format>

Exported files are timestamped and saved to ~/.link-checker/.

config

View current configuration or change settings.

link-checker config
link-checker config set <key> <value>

Available keys: timeout (seconds per request), retries (retry count on failure), user_agent.

help

Show usage information and available commands.

link-checker help

version

Print the current version.

link-checker version

Examples

# Check if a URL is reachable
link-checker check https://example.com

# Scan a markdown file for broken links
link-checker scan ./README.md

# Batch check several URLs
link-checker batch https://example.com https://httpstat.us/404 https://httpstat.us/500

# See only the broken ones
link-checker broken

# Get a stats overview
link-checker stats

# Generate a JSON report
link-checker report json

# Export full history as CSV
link-checker export csv

# Set request timeout to 15 seconds
link-checker config set timeout 15

# Set retry count to 3
link-checker config set retries 3

Configuration

Settings are stored in ~/.link-checker/config as key-value pairs.

KeyDefaultDescription
---------------------------
timeout10Connection timeout in seconds per request
retries2Number of retry attempts on timeout/error
user_agentLinkChecker/1.0.0User-Agent header sent with requests

Change any setting with link-checker config set .

Data Storage

All data lives in ~/.link-checker/:

FilePurpose
---------------
results.logCurrent session results (pipe-delimited)
history.logCumulative log of all checks ever run
configConfiguration key-value file
report.*Generated reports (txt/csv/json)
export_.Timestamped exports

Log format: timestamp|url|status_code|status_label

Status Categories

IconCategoryCodes
-----------------------
OK2xx
🔄Redirect3xx
Client Error4xx
⚠️Server Error5xx
⏱️TimeoutConnection timed out
🚫ErrorDNS failure, connection refused

Requirements

  • bash (4.0+)
  • curl
  • grep, sort, awk (standard Unix tools)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 3 个版本

  • v2.1.0 当前
    2026-03-29 02:10 安全 安全
  • v2.3.4
    2026-03-27 20:08
  • v0.0.1
    2026-03-14 01:50

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,534