360 Secure SkillHub
360 安全技能中心

Deadlink

核心功能:支持单URL HTTP状态检测、提取文本/文档内URL批量校验、指定深度爬取网站并检测所有链接,可生成带时间戳的报告,返回2xx(正常)、3xx(重定向)、4/5xx(失效)等状态码。典型场景:SEO死链审计、文档链接校验、网站链接排查。输入为命令行指令加目标,输出为终端反馈或本地报告文件。

bytesagain3
bytesagain3
热度 66.77
最近更新 2026-05-11 17:31:53
分类:效率依赖:代码执行 / 读写文件 / 联网浏览搜索应用场景:报告撰写 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deadlink
Metadata
name
DeadLink
description
Scan websites and files for broken links with HTTP status details. Use when auditing links, finding broken URLs, validating references.
version
3.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["link","checker","broken","dead","404","website","seo","validation","html"]
categories
["Developer Tools","Utility"]

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

Command Description
check <url> Check a single URL — shows HTTP status, redirect target if applicable
scan <file> Extract and check all URLs found in a text file
site <url> [depth] Crawl a webpage, extract all href/src links, and check each one
report <file> 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