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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Would it be possible to code an undetectable ad blocker?

13 点作者 guilamu将近 8 年前
I&#x27;m lacking the technical knowledge to answer this question, but I would have thought it would be something within the realm of possibility, but since no one has ever done it yet, I guess I&#x27;m wrong and I would really like to know why.<p>My two cents: Wouldn&#x27;t it be possible to just display ads in a sandbox environment invisible to the user and then display to the user an ad-free experience?

2 条评论

claudiulodro将近 8 年前
As someone that has developed ads before, not really.<p>I mean, anything is possible, but nowadays ads are hooked into all sorts of analytics software that determines how long an ad is on screen and things like that. You could try and implement something like what you&#x27;re proposing, but it would show up as weird metrics on the advertiser&#x27;s side.<p>Ads are already in a sandbox (iframe), so you could just make a little extension that sets iframes to display: none and give it a whirl if you wanted to test an MVP.
评论 #14428183 未加载
评论 #14430400 未加载
giobox将近 8 年前
Whilst It won&#x27;t be completely 100% undetectable, in practice I&#x27;ve found Pi-hole gets close to delivering the sort of browsing experience you are looking for.<p><a href="https:&#x2F;&#x2F;pi-hole.net" rel="nofollow">https:&#x2F;&#x2F;pi-hole.net</a><p>Rather than sandbox the ads, pihole simply kills the DNS request for the ad resources - unlike most ad blockers the vast majority of ad&#x2F;tracking resources simply never reach your computer, eliminating the need to dump them into a sandbox. In practice I&#x27;ve found it works on preventing ads on most sites that otherwise detect ad blockers and put up a &quot;nag wall&quot;. For me anyway it&#x27;s been much more effective than the browser based solutions, and with none of the DOM manipulation overhead etc.<p>Also has really nice advantage of blocking ads on devices that don&#x27;t support adblocker extensions - games consoles, tv streaming boxes etc.
评论 #14437787 未加载