TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Invisible Click Tracking Using “Empty” UTF-8 Characters

114 点作者 konstruktors超过 10 年前

10 条评论

thegeomaster超过 10 年前
Just to point out that hovering over the link shows URL-encoded codepoints, i.e. %u200B (in Firefox, for me, at least). I do think it's a better solution than the existing approach with GET parameters which does look clumsy.
评论 #9049639 未加载
评论 #9049983 未加载
评论 #9051114 未加载
shared4you超过 10 年前
Nitpick:<p>&gt; The idea is to use zero-width and space characters of UTF-8 such as U+200B, U+200C, U+200D<p>That must be Unicode, not UTF-8.
评论 #9049515 未加载
mrgriscom超过 10 年前
Isn&#x27;t this exploiting the same kind of Unicode ambiguity that allowed phishing sites to impersonate trusted domains by substituting certain latin characters with identical-looking cyrillic equivalents? I would expect this capability to last long in the wild.
评论 #9049612 未加载
评论 #9049788 未加载
评论 #9050032 未加载
imjustsaying超过 10 年前
Anyone have a suggestion of how this would be used in practice for uniquely identifying something?<p>So there are a certain number of non-width space characters. As far as I can find in the links in the OP, U+FEFF, U+180E, U+200B, U+200C, U+200D would make 5.<p>So we have at least 5 values to work with, which would make... 120 combinations if they&#x27;re ordered differently? Surely we would need more if we want to uniquely identify something such as a referral, or are there more non-width spaces?<p>I&#x27;m kind of dumb and bad at probability, also. You&#x27;re encouraged to correct my thoughts on this and show me the errors of my thinking.
评论 #9049532 未加载
评论 #9049604 未加载
评论 #9049605 未加载
boscomutunga超过 10 年前
i don&#x27;t see any variables in the url when i run the inspector.
评论 #9049439 未加载
评论 #9049417 未加载
评论 #9049751 未加载
评论 #9049451 未加载
theunixbeard超过 10 年前
So who would pay for a tool to make creating&#x2F;handling&#x2F;analyzing these links as easy as using UTM parameters?
评论 #9051132 未加载
jkot超过 10 年前
There are only a few chars, so urls grow huge, once click count increases. JS is probably better
cturhan超过 10 年前
Post as many as character you want and it will work. Here:<p><a href="http://kaspars.net/blog/web-development/invisible-click-tracking?​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​" rel="nofollow">http:&#x2F;&#x2F;kaspars.net&#x2F;blog&#x2F;web-development&#x2F;invisible-click-trac...</a>
belorn超过 10 年前
Does this also work in mail readers?
评论 #9050152 未加载
评论 #9049485 未加载
andybak超过 10 年前
I actually like this. Assuming you agree there are non-creepy reasons to track clicks (not a given on HN) then this lets you keep your urls nice and clean when people just want to copy and paste them.<p>I imagine it might break in some scenarios (the url ends up with junk in it from bad unicode conversion) but it&#x27;s up to you to be permissive in the urls you accept.
评论 #9049804 未加载
评论 #9049757 未加载