跳到正文
Skillpedia
网站与界面(前端)75k · #2755

blocked-links

它能做什么

这项技能检查链接和脚本是否指向常见广告拦截器会屏蔽的域名。适合依赖数据分析或追踪、并希望网站对所有人都能正常使用的网站所有者。

适用场景

  • ✓当某个链接使用了可能被广告拦截器阻止的追踪重定向时。
  • ✓当分析数据明显低于预期时。
  • ✓当使用广告拦截器的访客点击导航链接却没有反应时。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/blocked-links/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/blocked-links/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2755
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能