Modern websites heavily rely on JavaScript (JS) to implement legitimate functionality as well as privacy-invasive advertising and tracking. Browser extensions such as NoScript block any script not loaded by a trusted list of endpoints, thus hoping to block privacy-invasive scripts while avoiding breaking legitimate website functionality. In this paper, we investigate whether blocking JS on the web is feasible without breaking legitimate functionality. To this end, we conduct a large-scale measurement study of JS blocking on 100K websites. We evaluate the effectiveness of different JS blocking strategies in tracking prevention and functionality breakage. Our evaluation relies on quantitative analysis of network requests and resource loads as well as manual qualitative analysis of visual breakage. First, we show that while blocking all scripts is quite effective at reducing tracking, it significantly degrades functionality on approximately two-thirds of the tested websites. Second, we show that selective blocking of a subset of scripts based on a curated list achieves a better tradeoff. However, there remain approximately 15% `mixed` scripts, which essentially merge tracking and legitimate functionality and thus cannot be blocked without causing website breakage. Finally, we show that fine-grained blocking of a subset of JS methods, instead of scripts, reduces major breakage by 3.7$\times$ while providing the same level of tracking prevention. Our work highlights the promise and open challenges in fine-grained JS blocking for tracking prevention without breaking the web.
翻译:现代网站严重依赖 JavaScript (JavaScript ) 来实施合法功能以及隐私侵入广告和跟踪。 NoScript 等浏览器扩展件包括 NoScript, 任何没有被信任的端点列表装入的脚本的量性分析, 希望屏蔽隐私侵入脚本, 避免破坏合法网站功能。 在本文中, 我们调查在不破坏合法功能的情况下在网络上屏蔽 JavaScript (JavaS) 是否可行。 为此, 我们对联S在100K 网站上屏蔽 JS 进行大规模测量研究。 我们评估了不同联S封堵战略在跟踪预防和功能断裂方面的有效性。 我们的评估依赖于对网络请求和资源负荷的定量分析以及对视觉断裂的手工定性分析。 首先,我们显示,虽然封堵所有脚本在减少跟踪功能方面相当有效,但大约三分之二的测试网站功能却大大减损了。 其次,我们显示,有选择地封堵住基于精心定义列表的一组脚本,可以实现更好的交换。 但是, 仍然有大约 15 % 的脚本, 基本地将追踪和合法的功能合并,因此无法在不导致主要的脚本的轨道上的断分级中 。