USENIX Security2023Top-tier venue
AutoFR: Automated Filter Rule Generation for Adblocking
Hieu Le, Salma Elmalaki, Athina Markopoulou, Zubair Shafiq
Abstract
Adblocking relies on filter lists, which are manually curated and maintained by a community of filter list authors. Filter list curation is a laborious process that does not scale well to a large number of sites or over time. In this article, we introduce AutoFR, a reinforcement learning framework to fully automate the process of filter rule creation and evaluation for sites of interest. We design an algorithm based on multi-arm bandits to generate filter rules that block ads while controlling the trade-off between blocking ads and avoiding visual breakage. We test AutoFR on thousands of sites and show that it is efficient: It takes only a few minutes to generate filter rules for a site of interest. AutoFR is effective: It optimizes filter rules for a particular site that can block 86% of the ads, as compared to 87% by EasyList, while achieving comparable visual breakage. Using AutoFR as a building block, we devise three methodologies that generate filter rules across sites based on: (1) a modified version of AutoFR, (2) rule popularity, and (3) site similarity. We conduct an in-depth comparative analysis of these approaches by considering their effectiveness, efficiency, and maintainability. We demonstrate that some of them can generalize well to new sites in both controlled and live settings. We envision that AutoFR can assist the adblocking community in automatically generating and updating filter rules at scale.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d6ecbc2e-a200-4343-bb72-7878b5bea6a2Cited by top-tier papers6
- AdFlush: A Real-World Deployable Machine Learning Solution for Effective Advertisement and Web Tracker PreventionKiho Lee, Chaejin Lim, Beomjin Jin, Taeyoung Kim et al.WWW 2024 · 5 citations
- SINBAD: Saliency-informed detection of breakage caused by ad blockingSaiid El Hajj Chehade, Sandra Deepthy Siby, Carmela TroncosoS&P 2024 · 3 citations
- Assessing Compliance in Digital Advertising: A Deep Dive into Acceptable Ads StandardsAhsan Zafar, Anupam DasWWW 2025 · 3 citations
- Unbundle-Rewrite-Rebundle: Runtime Detection and Rewriting of Privacy-Harming Code in JavaScript BundlesMir Masood Ali, Peter Snyder, Chris Kanich, Hamed HaddadiCCS 2024 · 2 citations
- Local Frames: Exploiting Inherited Origins to Bypass Content BlockersAlisha Ukani, Hamed Haddadi, Alex C. Snoeren, Peter SnyderCCS 2025
Builds on14
- Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski et al.NDSS 2019 · 826 citations
- Adversarial Policies: Attacking Deep Reinforcement LearningAdam Gleave, Michael Dennis, Cody Wild, Neel Kant et al.ICLR 2020 · 415 citations
- AdGraph: A Graph-Based Approach to Ad and Tracker BlockingUmar Iqbal, Peter Snyder, Shitong Zhu, Benjamin Livshits et al.S&P 2020 · 112 citations
- AdVersarial: Perceptual Ad Blocking meets Adversarial Machine LearningFlorian Tramèr, Pascal Dupré, Gili Rusak, Giancarlo Pellegrino et al.CCS 2019 · 65 citations
- Measuring and Disrupting Anti-Adblockers Using Differential Execution AnalysisShitong Zhu, Xunchao Hu, Zhiyun Qian, Zubair Shafiq et al.NDSS 2018 · 44 citations
Related papers
- CV-Inspector: Towards Automating Detection of Adblock CircumventionHieu Le, Athina Markopoulou, Zubair ShafiqNDSS 2021
- DEAR: Deep Reinforcement Learning for Online Advertising Impression in Recommender SystemsXiangyu Zhao, Changsheng Gu, Haoshenglun Zhang, Xiwang Yang et al.AAAI 2021 · 131 citations
- PERCIVAL: Making In-Browser Perceptual Ad Blocking Practical with Deep LearningZain ul Abi Din, Panagiotis Tigas, Samuel T. King, Benjamin LivshitsUSENIX ATC 2020 · 34 citations
- AutoLossGen: Automatic Loss Function Generation for Recommender SystemsZelong Li, Jianchao Ji, Yingqiang Ge, Yongfeng ZhangSIGIR 2022 · 16 citations
- CenRL: A Framework for Performing Intelligent Censorship MeasurementsHieu Le, Armin Huremagic, Kevin Wang, Roya Ensafi et al.S&P 2026
