免费工具 死链检查:找出网页上打不开的链接
填一个页面地址,工具读取它的 HTML,取出所有链接,按「站内优先」检查最多 100 个。打不开的链接会和锚文本、所在位置一起列出来;有跳转的、被对方网站拒绝的分开标注,不会把防火墙拦截误当成死链。
- 每页最多 100 个链接
- 锚文本和所在位置
- 被拦截不等于死链
检查一个页面上的链接
填完整的页面地址。链接取自服务器返回的 HTML,之后由 JavaScript 加上去的链接看不到。点「检查链接」之前,下面是标了日期的示例结果。
check.tapcub.com,由它从 Cloudflare 网络去请求这些页面(请求头带 From: tools@tapcub.com),再把状态码和本工具要用的那部分页面内容返回。检查服务只为限流记录主机名、状态码和耗时,不记路径、查询参数和页面内容,也不保存结果。每个链接只请求响应头(HEAD),服务器不支持时才改用 GET。批量检查每次请求带 8 个网址。第一次可能要过一个人机验证(Cloudflare Turnstile),之后 15 分钟内不用再验证。每个 IP 每分钟最多 30 次批量请求、每天 150 次。每次查一个页面。想查全站,先查链接最多的几个页面:首页、导航、资源汇总页。
「站内」包括同一网站的子域名。
只影响下面的表格;CSV 里是全部已检查的链接。
找到的链接
83
去掉 # 片段后去重。
已检查
83
死链
8
4xx、5xx、域名不存在。
可能被拦
20
401、403、429、503 或超时。
有跳转
16
能打开,但经过了别的网址。
正常
39
直接返回 200。
汇总
- 提示跳过了 52 个指向本页某个位置的链接(#…)。
- 错误8 个死链:改成正确地址、换成替代页面,或者删掉这个链接。
- 警告20 个链接被拒绝(401、403、429 或 503)。先用浏览器打开看看,再决定是不是死链。
- 提示16 个链接有跳转。能用,但直接链到最终网址,访客和爬虫都少走一步。
链接
鼠标移到网址或锚文本上可以看全文。
| # | 链接 | 锚文本 · 位置 | 状态 | 结论 |
|---|---|---|---|---|
| 1 | https://www.ruanyifeng.com/blog/ | 首页页面主体第 113 行 | 403 | 可能被拦 |
| 2 | https://www.ruanyifeng.com/blog/archives.html | 档案页面主体第 113 行 | 403 | 可能被拦 |
| 3 | https://www.ruanyifeng.com/feed.html?utm_source= | 订阅Feed页面主体第 130 行 | 403 | 可能被拦 |
| 4 | https://www.ruanyifeng.com/blog/2019/08/weekly-issue-69.html | 科技爱好者周刊:第 6页面主体第 155, 174 行 | 403 | 可能被拦 |
| 5 | https://www.ruanyifeng.com/blog/2019/08/ren-zhengfei.html | 任正非管理思想页面主体第 156, 175 行 | 403 | 可能被拦 |
| 6 | https://www.ruanyifeng.com/blog/weekly/ | 周刊页面主体第 165 行 | 403 | 可能被拦 |
| 7 | https://www.ruanyifeng.com/ | 阮一峰正文第 189 行 | 403 | 可能被拦 |
| 8 | https://www.ruanyifeng.com/blog/2019/08/ | 2019年8月23日正文第 190 行 | 403 | 可能被拦 |
| 9 | https://www.ruanyifeng.com/cdn-cgi/l/email-protection | [email protected]正文页面主体第 627, 637, 2593 行 | 404 | 死链 |
| 10 | https://www.ruanyifeng.com/blog/2018/08/weekly-issue-18.html | 第 18 期正文第 658 行 | 403 | 可能被拦 |
| 11 | https://www.ruanyifeng.com/blog | 阮一峰的网络日志正文第 664 行 | 403 | 可能被拦 |
| 12 | https://www.ruanyifeng.com/blog/2026/02/weekly-issue-385.html | 科技爱好者周刊(第 385 期):马斯克害怕中国车企吗?页面主体第 693 行 | 403 | 可能被拦 |
| 13 | https://www.ruanyifeng.com/blog/2026/02/weekly-issue-384.html | 科技爱好者周刊(第 384 期):为什么软件股下跌页面主体第 703 行 | 403 | 可能被拦 |
| 14 | https://www.ruanyifeng.com/blog/2026/01/weekly-issue-383.html | 科技爱好者周刊(第 383 期):你是第几级 AI 编程页面主体第 713 行 | 403 | 可能被拦 |
| 15 | https://www.ruanyifeng.com/blog/2026/01/weekly-issue-382.html | 科技爱好者周刊(第 382 期):独立软件的黄昏页面主体第 723 行 | 403 | 可能被拦 |
| 16 | https://www.ruanyifeng.com/blog/2019/08/weekly-issue-70.html | #页面主体第 772, 804, 836 行 | 403 | 可能被拦 |
| 19 | https://www.wsj.com/articles/germany-for-first-time-sells-30-ye…外部 | 德国政府正文第 228 行 | 401 | 可能被拦 |
| 20 | https://www.kaikeba.com/外部 | "开课吧"正文第 242 行 | 连不上 | 死链 |
| 21 | http://www.planetary.org/blogs/jason-davis/lightsail-2-successf…外部 | 太阳帆正文第 260 行 | 301 → 301 → 200 | 有跳转https://www.planetary.org/articles/lightsail-2-su… |
| 22 | https://www.esa.int/Our_Activities/Space_Engineering_Technology…外部 | 3D 打印皮肤和骨骼正文第 270 行 | 连不上 | 死链 |
| 24 | https://www.bloomberg.com/news/features/2019-08-03/a-deluge-of-…外部 | 新能源样本房正文第 290 行 | 403 | 可能被拦 |
| 25 | https://www.curbed.com/2019/7/25/8929870/france-solar-roadway-e…外部 | 太阳能道路试验失败正文第 300 行 | 302 → 410 | 死链 |
| 28 | https://www.bloomberg.com/news/articles/2019-07-31/ibm-fired-as…外部 | IBM 公司正文第 338 行 | 403 | 可能被拦 |
| 29 | https://www.nationalgeographic.com/animals/2019/07/humpback-wha…外部 | 一位加拿大摄影师正文第 339 行 | 301 → 200 | 有跳转https://www.nationalgeographic.com/animals/articl… |
| 32 | https://www.bloomberg.com/news/articles/2019-08-05/new-japanese…外部 | NEC 公司正文第 365 行 | 403 | 可能被拦 |
| 35 | http://morningcoffee.io/killing-a-process-and-all-of-its-descen…外部 | 如何杀死一个进程和所有子进程正文第 383 行 | 301 → 308 → 200 | 有跳转https://morningcoffee.io/killing-a-process-and-al… |
| 37 | https://medium.com/@bernaferrari/from-android-dev-flutter-looks…外部 | Flutter 带给我的挫败感正文第 391 行 | 301 → 200 | 有跳转https://bernaferrari.medium.com/from-android-dev-… |
| 43 | https://habr.com/en/company/hygger/blog/462919/外部 | 产品经理与项目经理的区别正文第 415 行 | 301 → 200 | 有跳转https://habr.com/en/companies/hygger/articles/462… |
| 44 | https://the.exa.website/外部 | exa正文第 421 行 | 连不上 | 死链 |
| 45 | https://github.com/Haixiang6123/wtf-cli外部 | wtf-cli正文第 427 行 | 301 → 200 | 有跳转https://github.com/haixiangyan/wtf-cli |
| 50 | https://github.com/kulics/lite外部 | Lite 编程语言正文第 439 行 | 301 → 200 | 有跳转https://github.com/kulics/koral |
| 53 | https://ananasanalytics.com/外部 | Ananas Analytics正文第 449 行 | 301 → 200 | 有跳转https://www.ananasanalytics.com/ |
| 54 | https://github.com/Lispre/so_stupid_search外部 | sostupidsearch正文第 455 行 | 301 → 200 | 有跳转https://github.com/Lisprez/so_stupid_search |
| 55 | https://github.com/GoogleChrome/puppeteer/tree/master/experimen…外部 | Firefox puppeteer正文第 459 行 | 301 → 302 → 404 | 死链 |
| 56 | https://github.com/fastify/fastify/tree/master外部 | Fastify正文第 463 行 | 302 → 200 | 有跳转https://github.com/fastify/fastify/tree/main |
| 61 | https://distrotest.net/外部 | DistroTest正文第 481 行 | 连不上 | 死链 |
| 68 | https://blog.usepastel.com/post/33-beautiful-free-icon-sets外部 | 33个免费图标网站正文第 505 行 | 301 → 200 | 有跳转https://usepastel.com/blog/33-beautiful-free-icon… |
| 72 | https://www.facebook.com/story.php?story_fbid=10156010147332105…外部 | 街角的一尊佛像正文第 547 行 | 302 → 400 | 死链 |
| 73 | https://lospi.net/c/c++/programming/developing/software/2019/07…外部 | 《我写了一本 C++ 教材》正文第 593 行 | 301 → 200 | 有跳转https://lospino.so/c/c++/programming/developing/s… |
| 75 | https://www.forbes.com/sites/ktorpey/2019/07/30/us-lawmakers-ar…外部 | 一位美国国会议员正文第 605 行 | 403 | 可能被拦 |
| 78 | http://weixin.sogou.com/weixin?query=%E9%98%AE%E4%B8%80%E5%B3%B…外部 | 微信公众号正文第 664 行 | 301 → 200 | 有跳转https://weixin.sogou.com/weixin?query=%E9%98%AE%E… |
| 79 | https://yuque.com/ruanyf/share/外部 | 语雀正文第 664 行 | 302 → 200 | 有跳转https://yuque.com/ruanyf/weekly |
| 80 | http://creativecommons.org/licenses/by-nc-nd/3.0/deed.zh外部 | 创意共享3.0许可证正文第 680 行 | 302 → 301 → 200 | 有跳转https://creativecommons.org/licenses/by-nc-nd/3.0… |
| 81 | http://weibo.com/ruanyf外部 | Weibo页面主体第 2588 行 | 301 → 302 → 200 | 有跳转https://passport.weibo.com/visitor/visitor?entry=… |
url,type,result,status,chain,final_url,anchor_text,where,lines,error
https://www.ruanyifeng.com/blog/,internal,blocked,403,403,https://www.ruanyifeng.com/blog/,首页,body,113,
https://www.ruanyifeng.com/blog/archives.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/archives.html,档案,body,113,
https://www.ruanyifeng.com/feed.html?utm_source=,internal,blocked,403,403,https://www.ruanyifeng.com/feed.html?utm_source=,订阅Feed,body,130,
https://www.ruanyifeng.com/blog/2019/08/weekly-issue-69.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2019/08/weekly-issue-69.html,科技爱好者周刊:第 6 | ⇐,body,155 174,
https://www.ruanyifeng.com/blog/2019/08/ren-zhengfei.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2019/08/ren-zhengfei.html,任正非管理思想 | ⇒,body,156 175,
https://www.ruanyifeng.com/blog/weekly/,internal,blocked,403,403,https://www.ruanyifeng.com/blog/weekly/,周刊,body,165,
https://www.ruanyifeng.com/,internal,blocked,403,403,https://www.ruanyifeng.com/,阮一峰,main,189,
https://www.ruanyifeng.com/blog/2019/08/,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2019/08/,2019年8月23日,main,190,
https://www.ruanyifeng.com/cdn-cgi/l/email-protection,internal,broken,404,404,https://www.ruanyifeng.com/cdn-cgi/l/email-protection,[email protected],main body,627 637 2593,
https://www.ruanyifeng.com/blog/2018/08/weekly-issue-18.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2018/08/weekly-issue-18.html,第 18 期,main,658,
https://www.ruanyifeng.com/blog,internal,blocked,403,403,https://www.ruanyifeng.com/blog,阮一峰的网络日志,main,664,
https://www.ruanyifeng.com/blog/2026/02/weekly-issue-385.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2026/02/weekly-issue-385.html,科技爱好者周刊(第 385 期):马斯克害怕中国车企吗?,body,693,
https://www.ruanyifeng.com/blog/2026/02/weekly-issue-384.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2026/02/weekly-issue-384.html,科技爱好者周刊(第 384 期):为什么软件股下跌,body,703,
https://www.ruanyifeng.com/blog/2026/01/weekly-issue-383.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2026/01/weekly-issue-383.html,科技爱好者周刊(第 383 期):你是第几级 AI 编程,body,713,
https://www.ruanyifeng.com/blog/2026/01/weekly-issue-382.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2026/01/weekly-issue-382.html,科技爱好者周刊(第 382 期):独立软件的黄昏,body,723,
https://www.ruanyifeng.com/blog/2019/08/weekly-issue-70.html,internal,blocked,403,403,https://www.ruanyifeng.com/blog/2019/08/weekly-issue-70.html,#,body,772 804 836,
https://github.com/ruanyf/weekly,external,ok,200,200,https://github.com/ruanyf/weekly,ruanyf/weekly,main,214,
https://www.theguardian.com/money/2019/aug/13/danish-bank-launches-worlds-first-negative-interest-rate-mortgage,external,ok,200,200,https://www.theguardian.com/money/2019/aug/13/danish-bank-launches-worlds-first-negative-interest-rate-mortgage,丹麦,main,224,
https://www.wsj.com/articles/germany-for-first-time-sells-30-year-bonds-offering-negative-yields-11566385847?mod=rsswn,external,blocked,401,401,https://www.wsj.com/articles/germany-for-first-time-sells-30-year-bonds-offering-negative-yields-11566385847?mod=rsswn,德国政府,main,228,
https://www.kaikeba.com/,external,broken,,×,,"""开课吧""",main,242,network
http://www.planetary.org/blogs/jason-davis/lightsail-2-successful-flight-by-light.html,external,redirect,200,301 > 301 > 200,https://www.planetary.org/articles/lightsail-2-successful-flight-by-light,太阳帆,main,260,
https://www.esa.int/Our_Activities/Space_Engineering_Technology/Upside-down_3D-printed_skin_and_bone_for_humans_to_Mars,external,broken,,×,,3D 打印皮肤和骨骼,main,270,network
https://www.bbc.com/news/world-europe-49225001,external,ok,200,200,https://www.bbc.com/news/world-europe-49225001,飞越英吉利海峡,main,278,
https://www.bloomberg.com/news/features/2019-08-03/a-deluge-of-batteries-is-about-to-rewire-the-power-grid,external,blocked,403,403,https://www.bloomberg.com/news/features/2019-08-03/a-deluge-of-batteries-is-about-to-rewire-the-power-grid,新能源样本房,main,290,
https://www.curbed.com/2019/7/25/8929870/france-solar-roadway-experiment-normandy,external,broken,410,302 > 410,https://archive.curbed.com/2019/7/25/8929870/france-solar-roadway-experiment-normandy,太阳能道路试验失败,main,300,
https://www.theguardian.com/cities/2019/aug/05/suburb-in-the-sky-how-jakartans-built-an-entire-village-on-top-of-a-mall,external,ok,200,200,https://www.theguardian.com/cities/2019/aug/05/suburb-in-the-sky-how-jakartans-built-an-entire-village-on-top-of-a-mall,印尼的屋顶村庄,main,312,
https://www.ecowatch.com/google-science-award-irish-teenager-2639623184.html,external,ok,200,200,https://www.ecowatch.com/google-science-award-irish-teenager-2639623184.html,去除海洋微塑料的新方法,main,324,
https://www.bloomberg.com/news/articles/2019-07-31/ibm-fired-as-many-as-100-000-in-recent-years-court-case-shows,external,blocked,403,403,https://www.bloomberg.com/news/articles/2019-07-31/ibm-fired-as-many-as-100-000-in-recent-years-court-case-shows,IBM 公司,main,338,
https://www.nationalgeographic.com/animals/2019/07/humpback-whale-sea-lion-mouth-photo/,external,redirect,200,301 > 200,https://www.nationalgeographic.com/animals/article/humpback-whale-sea-lion-mouth-photo,一位加拿大摄影师,main,339,
https://www.theguardian.com/world/2019/aug/15/miracle-russia-ural-airlines-plane-lands-cornfield-moscow-gulls,external,ok,200,200,https://www.theguardian.com/world/2019/aug/15/miracle-russia-ural-airlines-plane-lands-cornfield-moscow-gulls,俄罗斯,main,347,
https://www.theguardian.com/science/2019/aug/01/most-detailed-ever-3d-map-of-milky-way-shows-warped-shape-cepheid,external,ok,200,200,https://www.theguardian.com/science/2019/aug/01/most-detailed-ever-3d-map-of-milky-way-shows-warped-shape-cepheid,一个波兰团队,main,357,
https://www.bloomberg.com/news/articles/2019-08-05/new-japanese-flying-car-gets-off-the-ground-for-about-a-minute,external,blocked,403,403,https://www.bloomberg.com/news/articles/2019-08-05/new-japanese-flying-car-gets-off-the-ground-for-about-a-minute,NEC 公司,main,365,
https://book.douban.com/review/6653141/,external,ok,200,200,https://book.douban.com/review/6653141/,为什么一天有两次潮汐,main,373,
https://www.smashingmagazine.com/2019/07/web-on-50mb-budget/,external,ok,200,200,https://www.smashingmagazine.com/2019/07/web-on-50mb-budget/,我用 50MB 度过一天,main,379,
http://morningcoffee.io/killing-a-process-and-all-of-its-descendants.html,external,redirect,200,301 > 308 > 200,https://morningcoffee.io/killing-a-process-and-all-of-its-descendants,如何杀死一个进程和所有子进程,main,383,
https://christianengstrom.wordpress.com/the-pirate-party-on-copyright-reform/,external,ok,200,200,https://christianengstrom.wordpress.com/the-pirate-party-on-copyright-reform/,海盗党的版权改革主张,main,387,
https://medium.com/@bernaferrari/from-android-dev-flutter-looks-good-but-is-painful-here-are-my-frustrations-with-it-81b4bbe739f8,external,redirect,200,301 > 200,https://bernaferrari.medium.com/from-android-dev-flutter-looks-good-but-is-painful-here-are-my-frustrations-with-it-81b4bbe739f8,Flutter 带给我的挫败感,main,391,
https://devconnected.com/syslog-the-complete-system-administrator-guide/,external,ok,200,200,https://devconnected.com/syslog-the-complete-system-administrator-guide/,Syslog 日志指南,main,395,
https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/,external,ok,200,200,https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/,为什么你应该使用 pathlib,main,399,
https://github.com/ruanyf/weekly/issues/755,external,ok,200,200,https://github.com/ruanyf/weekly/issues/755,nosarthur,main,401,
https://www.nocsdegree.com/22-year-old-self-taught-web-developer-earns-15k-a-month-in-rural-austria/,external,ok,200,200,https://www.nocsdegree.com/22-year-old-self-taught-web-developer-earns-15k-a-month-in-rural-austria/,22岁奥地利 PHP 程序员专访,main,403,
https://512pixels.net/dogcow/,external,ok,200,200,https://512pixels.net/dogcow/,狗狗克劳斯的历史,main,409,
https://habr.com/en/company/hygger/blog/462919/,external,redirect,200,301 > 200,https://habr.com/en/companies/hygger/articles/462919/,产品经理与项目经理的区别,main,415,
https://the.exa.website/,external,broken,,×,,exa,main,421,network
https://github.com/Haixiang6123/wtf-cli,external,redirect,200,301 > 200,https://github.com/haixiangyan/wtf-cli,wtf-cli,main,427,
https://www.abbreviations.com/,external,ok,200,200,https://www.abbreviations.com/,abbreviations.com,main,429,
https://github.com/ruanyf/weekly/issues/700,external,ok,200,200,https://github.com/ruanyf/weekly/issues/700,Haixiang6123,main,429,
https://github.com/jeffknupp/sandman2,external,ok,200,200,https://github.com/jeffknupp/sandman2,sandman2,main,431,
https://formcake.com/,external,ok,200,200,https://formcake.com/,Formcake,main,435,
https://github.com/kulics/lite,external,redirect,200,301 > 200,https://github.com/kulics/koral,Lite 编程语言,main,439,
https://github.com/ruanyf/weekly/issues/701,external,ok,200,200,https://github.com/ruanyf/weekly/issues/701,kulics,main,441,
https://github.com/edent/SuperTinyIcons,external,ok,200,200,https://github.com/edent/SuperTinyIcons,SuperTinyIcons,main,443,
https://ananasanalytics.com/,external,redirect,200,301 > 200,https://www.ananasanalytics.com/,Ananas Analytics,main,449,
https://github.com/Lispre/so_stupid_search,external,redirect,200,301 > 200,https://github.com/Lisprez/so_stupid_search,sostupidsearch,main,455,
https://github.com/GoogleChrome/puppeteer/tree/master/experimental/puppeteer-firefox,external,broken,404,301 > 302 > 404,https://github.com/puppeteer/puppeteer/tree/main/experimental/puppeteer-firefox,Firefox puppeteer,main,459,
https://github.com/fastify/fastify/tree/master,external,redirect,200,302 > 200,https://github.com/fastify/fastify/tree/main,Fastify,main,463,
https://gissue.github.io/,external,ok,200,200,https://gissue.github.io/,Gissue,main,467,
https://github.com/ruanyf/weekly/issues/760,external,ok,200,200,https://github.com/ruanyf/weekly/issues/760,tangkaichuan,main,471,
https://github.com/metafizzy/zdog,external,ok,200,200,https://github.com/metafizzy/zdog,Zdog,main,473,
https://github.com/ruanyf/weekly/issues/761,external,ok,200,200,https://github.com/ruanyf/weekly/issues/761,ifrontend-xyz,main,477,
https://distrotest.net/,external,broken,,×,,DistroTest,main,481,network
https://github.com/ruanyf/weekly/issues/697,external,ok,200,200,https://github.com/ruanyf/weekly/issues/697,ron159,main,483,
https://ruthub.com/,external,ok,200,200,https://ruthub.com/,RutHub,main,485,
https://github.com/ruanyf/weekly/issues/699,external,ok,200,200,https://github.com/ruanyf/weekly/issues/699,danloh,main,487,
https://github.com/jamiebuilds/the-super-tiny-compiler,external,ok,200,200,https://github.com/jamiebuilds/the-super-tiny-compiler,the-super-tiny-compiler,main,489,
https://www.abandonedamerica.us/,external,ok,200,200,https://www.abandonedamerica.us/,美国的废弃建筑,main,493,
https://ptable.com/,external,ok,200,200,https://ptable.com/,互动式元素周期表,main,499,
https://blog.usepastel.com/post/33-beautiful-free-icon-sets,external,redirect,200,301 > 200,https://usepastel.com/blog/33-beautiful-free-icon-sets,33个免费图标网站,main,505,
https://en.wikipedia.org/wiki/Hallgr%C3%ADmskirkja,external,ok,200,200,https://en.wikipedia.org/wiki/Hallgr%C3%ADmskirkja,哈尔格林姆教堂,main,511,
https://en.wikipedia.org/wiki/Sony_Watchman,external,ok,200,200,https://en.wikipedia.org/wiki/Sony_Watchman,Watchman,main,525,
https://en.wikipedia.org/wiki/Baumol%27s_cost_disease,external,ok,200,200,https://en.wikipedia.org/wiki/Baumol%27s_cost_disease,鲍莫尔成本病,main,537,
https://www.facebook.com/story.php?story_fbid=10156010147332105&id=657082104,external,broken,400,302 > 400,https://www.facebook.com/login/?next=https%3A%2F%2Fwww.facebook.com%2Fstory.php%3Fstory_fbid%3D10156010147332105%26id%3D657082104,街角的一尊佛像,main,547,
https://lospi.net/c/c++/programming/developing/software/2019/07/28/cpp-crash-course.html,external,redirect,200,301 > 200,https://lospino.so/c/c++/programming/developing/software/2019/07/28/cpp-crash-course.html,《我写了一本 C++ 教材》,main,593,
https://cn.nytimes.com/opinion/20190730/can-the-us-still-change-china/,external,ok,200,200,https://cn.nytimes.com/opinion/20190730/can-the-us-still-change-china/,《纽约时报》,main,599,
https://www.forbes.com/sites/ktorpey/2019/07/30/us-lawmakers-are-realizing-they-cant-ban-bitcoin/,external,blocked,403,403,https://www.forbes.com/sites/ktorpey/2019/07/30/us-lawmakers-are-realizing-they-cant-ban-bitcoin/,一位美国国会议员,main,605,
https://medium.com/@drola/the-mystery-of-market-size-in-nigeria-a7c863f537bb,external,ok,200,200,https://medium.com/@drola/the-mystery-of-market-size-in-nigeria-a7c863f537bb,《尼日利亚市场规模之谜》,main,621,
https://github.com/ruanyf/weekly/issues/692,external,ok,200,200,https://github.com/ruanyf/weekly/issues/692,程序员招聘帖 | 这里,main,625 637 654,
http://weixin.sogou.com/weixin?query=%E9%98%AE%E4%B8%80%E5%B3%B0%E7%9A%84%E7%BD%91%E7%BB%9C%E6%97%A5%E5%BF%97,external,redirect,200,301 > 200,https://weixin.sogou.com/weixin?query=%E9%98%AE%E4%B8%80%E5%B3%B0%E7%9A%84%E7%BD%91%E7%BB%9C%E6%97%A5%E5%BF%97,微信公众号,main,664,
https://yuque.com/ruanyf/share/,external,redirect,200,302 > 200,https://yuque.com/ruanyf/weekly,语雀,main,664,
http://creativecommons.org/licenses/by-nc-nd/3.0/deed.zh,external,redirect,200,302 > 301 > 200,https://creativecommons.org/licenses/by-nc-nd/3.0/deed.en,创意共享3.0许可证,main,680,
http://weibo.com/ruanyf,external,redirect,200,301 > 302 > 200,https://passport.weibo.com/visitor/visitor?entry=miniblog&a=enter&url=https%3A%2F%2Fweibo.com%2Fruanyf&domain=weibo.com&ua=Mozilla%2F5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F131.0.0.0%20Safari%2F537.36&_rand=1794922695271&sudaref=,Weibo,body,2588,
https://twitter.com/ruanyf,external,ok,200,200,https://twitter.com/ruanyf,Twitter,body,2589,
https://github.com/ruanyf,external,ok,200,200,https://github.com/ruanyf,GitHub,body,2590,每个已检查的链接一行,含锚文本、位置和完整跳转链;文件带 BOM,Excel 直接打开不乱码。
分享这组输入:数值写在链接的 # 后面,不会发到服务器。
https://tapcub.com/zh/tools/broken-link-checker
版本 v1.0更新于 更新记录
死链、可能被拦、有跳转
每个链接会得到四种结论之一,只有「死链」是确定的问题。
死链
目标返回 404(不存在)、410(已删除)、其它 4xx 或 5xx,或者域名已经不存在、拒绝连接。访客点进去看到的是错误页。
可能被拦
401、403、429、503 通常是对方拒绝了自动请求:登录墙、防爬虫防火墙、限流或人机验证页。浏览器里往往能打开,需要人工确认。超时也归在这里。
有跳转
链接能打开,但中间经过一次或几次跳转(「状态」列会显示跳转链)。如果是永久跳转,建议改成最终地址,访客更快,搜索引擎也更明确。
锚文本和位置
访客点的是哪几个字、链接在页面哪个区域(导航、正文、页脚,附源码行号)。导航里的死链每个页面都有,旧文章里的死链改一处就行。
工具只看服务器发来的 HTML。之后由 JavaScript 插入的链接(部分菜单、评论组件、嵌入的信息流)不在其中;只有登录后才打不开的链接,这里也会显示正常。
三步
不用注册。每次一个页面,最多 100 个链接。
-
1
填页面地址
先从外链多的页面查起:首页、资源汇总页、比较旧的文章。
-
2
检查链接
先取页面、列出链接,再 8 个一组检查,结果陆续出现。
-
3
修改并导出
先修死链,再到浏览器里确认「可能被拦」的,最后更新永久跳转。CSV 里保留锚文本和行号,方便提工单;整理好的死链也可以提交到百度搜索资源平台。
先解析页面,再逐个询问链接
浏览器不能读取别的网站的响应,所以页面和链接都由 TapCub 的检查服务去请求,再把结果带回这里。
- 用 Chrome 身份取页面并跟随跳转;链接按最终网址解析成完整地址(页面有
<base href>时按它) - 收集
<a href>和<area href>;mailto:、tel:、javascript:和本页#链接只计数不检查 - 网址去重(忽略 # 片段),按站内 → 子域名 → 外部排序,检查前 100 个
- 每个链接:先发 HEAD(服务器回 405 或 501 时改 GET),最多跟 3 次跳转,8 秒超时,从 Cloudflare 网络发出
- 结论规则:2xx 为正常(中间有跳转则为「有跳转」);401 / 403 / 429 / 503 / 999 为「可能被拦」;其它 4xx、5xx、域名不存在、拒绝连接、跳转死循环为死链
| 返回 | 结论 | 原因 |
|---|---|---|
| 200–299 | 正常 / 有跳转 | 目标能打开 |
| 404、410 | 死链 | 页面没了 |
| 400、405–499(其它) | 死链 | 请求不可能成功 |
| 401、403、429 | 可能被拦 | 通常是登录或防爬虫 |
| 503 | 可能被拦 | 常见于验证页或维护中 |
| 500、502、504 | 死链 | 服务器故障 |
| 没有回应 | 死链 / 超时 | 域名不存在、被拒,或超过 8 秒 |
一期七年前的周刊,链接还剩多少能打开
阮一峰《科技爱好者周刊》第 70 期发布于 2019 年 8 月,正文链到几十个外部网站,页面上还有博客自己的导航链接。
| 链接类型 | 结论 | 怎么读 |
|---|---|---|
| 博客自己的导航链接 | 可能被拦(403) | 同一站点对连续的自动请求返回 403,浏览器里能正常打开,不是死链 |
| 已经关闭或改版的外部网站 | 死链(404、域名不存在) | 这几年网站下线或文章删除了 |
| 换成 https 或新路径的外部链接 | 有跳转(301 → 200) | 还能用,可以改成新地址 |
| 本页 # 链接 | 未检查 | 52 个指向本页位置的链接单独计数 |
这个例子正好说明为什么要把「可能被拦」和死链分开:同一站点的链接集中返回 403,是对方的防护策略,不是页面坏了。具体数字见上面的默认结果;点「检查链接」看今天的情况。
死链检查容易看错的地方
工具给的是证据,下面这些情况最容易误读。
把「可能被拦」直接删掉
领英、很多电商网站和开了防爬虫的网站都会拒绝自动请求。先在浏览器里打开确认。
忽略「软 404」
有的网站对不存在的页面返回 200 加一句「页面不存在」。状态码看着正常,只有打开目标页面才知道。
留着多次跳转
跳三次才到的链接「能用」,但慢而且容易断。直接链到最终地址。
只查服务器 HTML
JavaScript 生成的菜单在这里看不到。重度依赖 JavaScript 的网站,要把菜单指向的页面也查一遍。
访客真正撞上的死链
死链检查能找到坏了的链接,统计数据能告诉你哪些坏链接真的有人在点。
怎么检查一个网页上的死链?
在上面填页面地址,点「检查链接」。工具会读取页面 HTML 里的全部链接,请求其中最多 100 个,列出返回错误的链接,并附上锚文本和源码行号,方便在编辑器里找到。
为什么有的链接标「可能被拦」而不是死链?
它返回了 401、403、429 或 503,这通常是对方网站拒绝了自动请求,而不是页面不存在。用浏览器打开一下:能打开就没问题。
能检查整个网站的死链吗?
每次检查一个页面、最多 100 个链接。先查最重要的几个页面,或者用 Sitemap 检查工具检查 sitemap 里列出的页面。
死链对 SEO 有影响吗?
外部死链主要影响访客体验。站内死链影响更大:浪费爬虫的抓取,也让一些页面少了被发现的入口。百度搜索资源平台提供死链提交,删除或改好的页面整理后可以提交。
为什么结果里少了一些链接?
页面加载后由 JavaScript 添加的链接不在服务器 HTML 里。mailto:、tel:、javascript: 和本页 # 链接只计数,不去请求。
会跟随跳转吗?
会,最多 3 次。最后能打开的算「有跳转」,最后报错的算死链,「状态」列显示整条跳转链。
我检查的页面会被保存吗?
不会。检查服务只为限流记录主机名、状态码和耗时,结果只留在你的浏览器标签页里。