AutoFR: Automated Filter Rule Generation for Adblocking

Hieu Le, Salma Elmalaki, Athina Markopoulou, Zubair Shafiq
2/25/2022
cs.LGcs.NI

Official code: UCI-Networking-Group/AutoFR (11 stars, C++, GPL-2.0, last commit 2024-03-12).

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.

Show full abstract

In this paper, 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 we show that it is efficient: it takes only a few minutes to generate filter rules for a site of interest. AutoFR is effective: it generates filter rules that can block 86% of the ads, as compared to 87% by EasyList, while achieving comparable visual breakage. Furthermore, AutoFR generates filter rules that generalize well to new sites. We envision that AutoFR can assist the adblocking community in filter rule generation at scale.

View on arXivView PDF

Code Implementations(1)

GPL-2.0

AutoFR generates filter rules for the web to block ads while considering visual breakage automatically.

113C++, PythonDec 7, 20222 years agoGPL-2.0
adblockingfilterlistusenix-security-2023

Similar Papers

Cite this paper

@article{le2022autofr,
  title  = {AutoFR: Automated Filter Rule Generation for Adblocking},
  author = {Hieu Le and Salma Elmalaki and Athina Markopoulou and Zubair Shafiq},
  year   = {2022},
  eprint = {2202.12872},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.12872}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.12872.svg)](https://codeofpaper.com/paper/2202.12872)

Discussion