blocked-links
它能做什么
这项技能检查链接和脚本是否指向常见广告拦截器会屏蔽的域名。适合依赖数据分析或追踪、并希望网站对所有人都能正常使用的网站所有者。
适用场景
- ✓当某个链接使用了可能被广告拦截器阻止的追踪重定向时。
- ✓当分析数据明显低于预期时。
- ✓当使用广告拦截器的访客点击导航链接却没有反应时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/blocked-links/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的网站,找出广告拦截器可能会阻止的追踪脚本和链接,并提出修复建议。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会列出位于已知追踪域名上的脚本、图片、框架和链接地址,然后建议自行托管或代理关键资源,或使用带有追踪参数的直接链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Blocked Tracking Links
When a navigation link's URL matches a tracking domain pattern, the adblocker may block the request entirely — the user clicks the link and nothing happens, breaking core site functionality.
Quick Reference
- Adblockers block URLs matching domain-level filter lists like EasyList and EasyPrivacy
- Affected resources include external scripts, images, fonts, and API endpoints hosted on blocked domains
- Analytics and tag management scripts (Google Analytics, GTM, Hotjar, Heap) are commonly blocked
- Self-hosting or proxying external scripts through your own domain bypasses most domain-level blocks
- 20–40% of desktop users have an adblocker installed — blocked analytics skews your data significantly
Check
Identify external script sources, image src URLs, iframe src URLs, and anchor href values that point to known tracking domains (googletagmanager.com, hotjar.com, facebook.net, doubleclick.net, etc.). Test whether these resources load successfully with uBlock Origin enabled.
Fix
Self-host critical external scripts on your own domain. Use a reverse proxy or server-side route to forward requests to third-party analytics APIs. For navigation links, avoid using tracking redirect URLs — use direct destination URLs with UTM parameters appended instead.
Explain
Explain how domain-level adblocker filter lists work, which domains are commonly blocked, how blocked resources affect site functionality and analytics accuracy, and the self-hosting approach to bypass domain blocks.
Code Review
Review server config, headers, forms, and integration points related to Blocked Tracking Links. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/security/blocked-links
常见问题
广告拦截器有多普遍?
这项技能说明,大约 20% 到 40% 的桌面用户安装了广告拦截器。
它建议哪些修复方法?
自行托管关键脚本、使用服务器路由转发请求,以及使用带 UTM 参数的直接链接。
这项技能会用广告拦截器测试吗?
会。它建议在启用 uBlock Origin 的情况下测试资源是否能正常加载。
详情
作者的原始描述
Use when reviewing HTML source and JavaScript for links or resource URLs pointing to domains listed in common adblocker filter lists.
热度
- GitHub 星标
- 75k
- 排名
- #2755
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。