← 返回
未分类 中文

Link Checker

Check all links in a website's HTML files and report broken, redirected, and slow links. Supports internal links, external links, and affiliate link identifi...
检查网站HTML文件中的所有链接,报告损坏、重定向和缓慢的链接。支持内部链接、外部链接和联盟营销链接识别。
kryzl19 kryzl19 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 381
下载
💾 1
安装
1
版本
#latest

概述

Link Checker

Validate links in HTML files and report issues: broken links (404/500), redirects, slow responses, and affiliate link status.

What This Skill Does

  • Scans all HTML files in a given directory
  • Checks each link (internal + external) for HTTP status
  • Identifies broken (4xx/5xx), redirected (3xx), and slow links (>5s)
  • Groups links by type: internal, external, affiliate
  • Outputs a clean markdown report sorted by severity

Environment Variables

VariableRequiredDefaultDescription
------------------------------------------
SITE_DIRYesDirectory containing HTML files to scan
LINK_CHECK_TIMEOUTNo10Max seconds to wait per link
AFFILIATE_DOMAINSNosee belowComma-separated affiliate domains to flag

Default affiliate domains: amazon.com,hostname/s/aspx,godaddy.com,bluehost.com,digitalocean.com,heroku.com,shopify.com,awin1.com,ref=

Scripts

check.sh — Full Link Audit

./scripts/check.sh [directory]

Output: markdown report with broken links, redirects, slow links, and affiliate links found.

quick.sh — Fast Scan (broken links only)

./scripts/quick.sh [directory]

Only reports 4xx/5xx status links. Skips affiliate and slow link checks.

affiliate.sh — Affiliate Link Report

./scripts/affiliate.sh [directory]

Lists all affiliate links and whether they're reachable. Critical for revenue site maintenance.

Output Format

# Link Checker Report — [site name]
Generated: [timestamp]

## Summary
- Total links checked: N
- Broken: N  🔴
- Redirected: N  🟡
- Slow (>5s): N  🟠
- Affiliate: N  ✅

## Broken Links (4xx/5xx)  🔴
[file] [line] [url] — [status]

## Redirects  🟡
[file] [url] → [destination]

## Slow Links (>5s)  🟠
[file] [url] — [response_time]

## Affiliate Links  ✅
[file] [url]

Example Usage

# Check all articles
SITE_DIR=./site ./scripts/check.sh

# Fast broken-link only
./scripts/quick.sh ./site/articles/

# Affiliate link audit
AFFILIATE_DOMAINS="amazon.com,digitalocean.com,bluehost.com" ./scripts/affiliate.sh ./site

Notes

  • External links are checked with HEAD requests (faster than GET)
  • Broken link reports are prioritized by severity (5xx worse than 4xx)
  • Affiliate links are flagged but marked ✅ to confirm they're present
  • Run this after any major content update to catch broken links before Google does

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,543
knowledge-management

Content Summarizer

kryzl19
获取任意URL并生成结构化内容摘要,采用提取式摘要技术,包含AI增强提示和结构化输出模板,提取清洁内容。
★ 1 📥 1,766
it-ops-security

OpenClaw Backup

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