LLM-Based Website Classification for Targeted Web Measurements

arXiv:2510.08101 · cs.CR · Submitted 2025-10-09 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "LLM-Based Website Classification for Targeted Web Measurements".

Title and authors: Nadia: So, the main idea is that they propose a two-step method to handle targeted web measurements starting from the Tranco list.

Elias: They suggest a fast pre-filtering step where the large language model classifies websites without even accessing those actual websites, and then a high precision refinement step where they use live access for better accuracy.

Priya: This two step approach is what makes it faster than traditional methods, which they estimate can take about seven days and seven hours on average to visit every single website manually.

Nadia: They claim this method allows researchers to build targeted datasets for web measurements in a much more scalable way, overcoming the limitations of older heuristic based approaches.

Elias: The paper also lays out how they built their evaluation setup, using a lightweight crawler controlled by an large language model through LangChain which limits the crawler to just top level browser navigation and html text extraction.

The paper's summary: Nadia: They highlighted three main ways they improved the existing process. First, they suggested implementing that two step filtering strategy we talked about earlier.

Elias: That addresses the trade off between speed and accuracy by using large language model classification without access first, then adding access for refinement.

Priya: The second improvement is using large language models for automated dataset construction to create representative datasets, like governmental or pornographic websites, starting from that Tranco list.

Nadia: That means researchers can build high quality labeled datasets with way less manual work while still getting accuracy that matches independent, curated datasets.

Elias: And the third point is applying this two step filtering strategy to large lists of websites to balance efficiency and accuracy, showing that classification without access is faster but less accurate than classification with access enabled.

The paper's improvements: Nadia: So to wrap up, the paper "LLM-Based Website Classification for Targeted Web Measurements" shows that large language models offer a practical and scalable way to support targeted web measurements.

Elias: They are presented as a versatile tool for this research, enabling accurate and scalable analyses with very little manual effort from the researchers.

Priya: It really demonstrates that large language models can help overcome the limitations of those older methods that relied on simple rules or heuristics to build these datasets.

Nadia: In future work, they mentioned wanting to explore whether the way large language models understand meaning could be used to intentionally bias research inferences toward websites that are particularly interesting for security or privacy studies.

Elias: That sounds like a path forward where we move beyond just classification toward using the semantic understanding of these models for more focused investigation.

Priya: It’s important to remember that they also pointed out a limitation: the choice of model and how you configure it still plays a significant role in how well those predictions turn out.

Nadia: So, overall, this paper "LLM-Based Website Classification for Targeted Web Measurements" gives us a much more efficient way to build the data sets needed for security and privacy research.

Conclusion: Nadia: So we've been talking about "LLM-Based Website Classification for Targeted Web Measurements," which basically shows that large language models can help us sort through huge lists of websites based on what they are actually doing online.

Elias: They're setting up this two-step method starting from the Tranco list. A fast pre-filtering step where the AI classifies everything without even looking at the actual website, and then a high precision refinement step where you use live access for better accuracy.

Priya: That two step approach is what makes it faster than traditional methods, which they say can take about seven days and seven hours to visit every single site manually. It’s really about making data collection scalable.

Nadia: They claim this method lets researchers build targeted datasets for web measurements in a much more scalable way, bypassing those older rule-based approaches. It seems like a real step forward for building usable data sets.

Elias: The paper also explains how they built their setup, using a small crawler controlled by an LLM through LangChain that only looks at top level browser navigation and text extraction. That's the engineering side of it all.

Priya: What I see is that by using this AI for dataset construction, you get high quality labeled data for things like governmental or pornographic websites with much less manual effort. It’s a big win for researchers needing real data quickly.

Nadia: Yeah, and the results confirm that the AI can actually achieve strong performance across different website types, but they stress that it really depends on which model you pick and how you set it up. That’s a key caveat to keep in mind for anyone trying to use this.

Elias: Exactly. They tested various models like gptoss twenty billion and llama three point three seven billion parameters, showing that the size of the model does matter for accuracy on these classification tasks.

Priya: And looking at the privacy analysis results, they showed that even with their AI filtering, like for governmental websites, the share of third party cookies set by known trackers stayed pretty consistent across different datasets. That suggests their filtered dataset is representative enough for research inferences.

Nadia: It's good to see strong agreement between those curated datasets in capturing the set of trackers, even when comparing different popularity groups. That consistency is what gives researchers confidence in using this data for actual privacy studies.

Elias: So, to wrap up, "LLM-Based Website Classification for Targeted Web Measurements" shows that large language models offer a practical and scalable way to support targeted web measurements without needing massive manual effort.

Priya: It really demonstrates that these models can help overcome the limitations of those older methods that relied on simple rules or heuristics to build these datasets. It’s about moving toward more automated data generation.

Nadia: In future work, they mentioned wanting to explore whether the way large language models understand meaning could be used to intentionally bias research inferences toward websites that are particularly interesting for security or privacy studies.

Elias: That sounds like a path forward where we move beyond just classification toward using the semantic understanding of these models for more focused investigation into those areas.

Priya: It’s important to remember that they also pointed out a limitation: the choice of model and how you configure it still plays a significant role in how well those predictions turn out. You can't just plug anything in and expect perfect results.

Nadia: So, overall, this paper on "LLM-Based Website Classification for Targeted Web Measurements" gives us a much more efficient way to build the data sets needed for security and privacy research by using these powerful tools smartly.

Elias: Next up, we're diving into how differentially private contrastive learning is trying to learn general purpose representations from sensitive data.

University of Ca’ Foscari Venezia · University of Luxembourg

cs.CR

Submitted: 2025-10-09

Updated: 2026-11-21

Comments: 29 pages, 13 tables

Code: https://github.com/patcg-individual-drafts/topics

Project page: https://www.pagopa.gov.it

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 83/100

The gist: Web measurements are well-established methodology for assessing security and privacy landscape of Internet.

Key concepts

Targeted Web Measurements
This is a method used to assess the security and privacy risks of specific websites. Traditional methods struggle because popular website lists lack information about what kind of content they host, making it hard to target them effectively without manual checks.
LLM-Based Classification
Large Language Models are used to automatically sort websites into categories like 'governmental' or 'pornographic.' They achieve this by understanding the context and language on the web, allowing researchers to build large, labeled datasets much faster than manual review.
Two-Step Methodology
The proposed process involves two stages: first, a fast pre-filtering step that classifies websites without needing live access to them. Second, a high-precision refinement step that uses live access for more accurate labeling. This balances speed and accuracy for building large measurement datasets.
Website Classification Tasks
These are the specific problems LLMs are trained to solve, such as determining if a site is governmental or identifying its category. The authors constructed curated datasets to test different LLMs on these tasks to see which models perform best for research needs.

Terminology

Summary

Web measurements are well-established methodology for assessing security and privacy landscape of Internet. p. 0 In this paper, we investigate the use of Large Language Models (LLMs) to enable targeted web measurement studies. p. 0

Pruning redundant reasoning tokens

Web measurements are a well-established methodology for assessing the security and privacy landscape of the Internet Existing top lists of popular websites are unlabeled and lack semantic information about the nature of the included websites, making targeted web measurements challenging. This paper investigates the use of Large Language Models (LLMs) to enable targeted web measurement studies. p. 0 p. 0 The key intuition is that LLMs can perform automated website classification by leveraging contextual information, natural language understanding, and the extensive knowledge they have gained from training on massive datasets constructed by scraping diverse web sources. p. 0 p. 0

How the training signal is built

The authors identify key website classification tasks relevant to web measurements and highlight limitations in state-of-the-art classification approaches. They construct carefully curated datasets to evaluate different LLMs on these tasks. p. 0 The experimental setup focuses on self-hosted and open-source LLMs available in Ollama, prioritizing reproducibility and transparency. p. 1 The measurement setup involves a lightweight crawler controlled by an LLM via LangChain, restricted to top-level browser navigation and HTML text extraction. p. 2

Where the gains come from

The authors propose a practical two-step methodology for scalable targeted web measurements starting from the Tranco list. This methodology involves a Fast Pre-Filtering step using LLM-based classification without website access, followed by a High-Precision Refinement step using LLM classification with website access enabled. p. 2 This approach is faster than traditional approaches, which require visiting every website and take an estimated 7 days and 7 hours on average. p. 9 The results show that LLMs enable scalable construction of targeted datasets for web measurements. p. 9

Evaluating LLM performance

gpt-oss is the best-performing model overall and the only one that consistently exploits live access to the websites to improve the quality of its predictions. With live access enabled, gpt-oss reaches 0. p. 796 accuracy and macro F1 on Governmental, 0. p. 797 accuracy and 0. p. 095 macro F1 on Countries, and 0. p. 765 Jaccard and 0. p. 764 macro F1 on Categories. p. 7 The study shows that LLMs can achieve strong performance across multiple classification scenarios, but the choice of model and configuration plays a significant role. p. 0

Dataset construction details

For governmental websites, a revised definition is proposed: “a governmental website is an official online platform created and maintained by a government entity, or an organization significantly controlled or owned by a government”. The dataset for governmental websites is constructed by creating a corpus including the 1,214 websites that belong to the intersection of the datasets by Gotze et al. p. 4 [52] and Singanamalla et al. p. 4 [77]. For website country classification, an algorithm is used that considers language and IP address information to assign labels based on compatibility with top-level domains. p. 5

Privacy analysis results

In the first study focusing on governmental websites, the share of governmental websites with at least one third-party cookie set by a known tracker is similar across datasets: 10% for the gpt-oss filtered dataset, 8.3% for Singanamalla et al. p. 4, and 8.9% for Gotze et al. p. 3 These findings further confirm that the gpt-oss filtered dataset is representative, as it enables research inferences consistent with those derived from independent, curated datasets from the literature. p. 1 The results show strong agreement between datasets in capturing the set of trackers, even across popularity groups. p. 0

Pornographic website analysis

In the second study focusing on pornographic websites, 34.8% of websites in the reconstructed dataset set at least one third-party tracking cookie, compared to 23% in the gpt-oss filtered dataset. p. 8 The results demonstrate a strong consistency between the datasets in capturing the set of trackers, even across popularity groups. p. 0 The top two trackers are identical in both datasets, confirming the representativeness of the gpt-oss filtered dataset. p. 8

Conclusion

In this paper, we showed that LLMs provide a practical and scalable approach to support targeted web measurements. LLMs are a versatile and powerful tool for web measurement research, enabling accurate and scalable analyses with minimal manual effort. p. 1 In future work, we would like to explore whether the semantic understanding of LLMs can be leveraged to bias research inferences towards websites and web pages that are particularly interesting for the security or privacy aspect under study. p. 0 The research demonstrates that LLMs can overcome the limitations of heuristic-based approaches and support researchers in building datasets for targeted web measurements starting from Tranco. p. 7

References

[7] Artifacts 2025. Artifacts. https://anonymous. p. 34open.science/r/LLMAssisted-Web-Measurements-Artifacts-2B0F/. p. 1 Repository containing all of the artifacts related to this paper. p. 0

[72] Victor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski, and Wouter Joosen. 2019. Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation. p. 0 In 26th Annual Network and Distributed System Security Symposium, NDSS 2019, San Diego, California, USA, February 24-27, 2019

[73] Xiaoguang Qi and Brian D. Davison. 2009. Web page classification: Features and algorithms. p. 2 ACM Comput. Surv. 41, 2 (2009), 12:1–12:31.

[74] Nayanamana Samarasinghe, Aashish Adhikari, Mohammad Mannan, and Amr M. Youssef. 2022. Et tu, Brute? Privacy Analysis of Government Websites and Mobile Apps. p. 3 p. 3 In WWW ’22: The ACM Web Conference 2022, Virtual Event, Lyon, France

[77] Sudheesh Singanamalla, Esther Han Beol Jang, Richard Anderson, Tadayoshi Kohno, and Kurtis Heimerl. 2020. Accept the Risk and Continue: Measuring the Long Tail of Government https Adoption. In IMC ’20: ACM Internet Measurement Conference, Virtual Event, USA

[91] Pelayo Vallina, Álvaro Feal, Julien Gamba, Narseo Vallina-Rodriguez, and Antonio Fernández Anta. 2019. Tales from the Porn: A Comprehensive Privacy Analysis of the Web Porn Ecosystem. p. 0 p. 0 p. 0 In Proceedings of the Internet Measurement Conference, IMC 2019, Amsterdam,. p. 0 p. 0 p. 0 The Netherlands

[78] Alexander Spangher, Gireeja Ranade, Besmira Nushi, Adam Fourney, and Eric Horvitz. 2020. Characterizing Search-Engine Traffic to Internet Research Agency Web Properties. p. 0 In WWW ’20: The Web Conference 2020, Taipei, Taiwan

[81] Avinash Sudhodanan, Roberto Carbone, Luca Compagna, Nicolas Dolgin, Alessandro Armando, and Umberto Morelli. 2017. Large-Scale Analysis & Detection of Authentication Cross-Site Request Forgeries. p. 9 p. 9 In 2017 IEEE European Symposium on Security and Privacy, EuroS&P 2017, Paris, France

[86]. The Daily Star. 2021. Amazon closing down Alexa, the popular web traffic ranking site. p. 0

[93] Luping Wang, Sheng Chen, Linnan Jiang, Shu Pan, Runze Cai, Sen Yang, and Fei Yang. 2025. Parameter-efficient fine-tuning in large language models: a survey of methodologies. p. 9 Artif. Intell. Rev. 58, 8 (2025), 227. p. 2

[69] Ollama. p. 1 2026. Ollama: Run, create, and share large language models locally. p. 0

[17] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan., Rewon Child., Aditya Ramesh., Daniel M. Ziegler., Jeffrey Wu., Clemens Winter., Christopher Hesse., Mark Chen. p. 5, Eric Sigler,, Mateusz Litwin,, Scott Gray,, Benjamin Chess,, Jack Clark,, Christopher Berner,, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are FewShot Learners. p. 0 In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual

[56] LangChain. 2026. LangChain. https://docs. p. 3langchain.com/

[53] IPinfo. 2026– IPinfo API. p. 6 https://ipinfo. p. 3io/developers/ipinfo-api. p. 6

[89] Trend Micro. p. 6 2026– Trend Micro Pricing. p. 0 https://www. p. 3cdw.com/product/trend-micro-cloud-one-workload-security-subscriptionlicense-renewal-1/7112444. p. 3

[50] Google. p. 4 2026. Chrome User Experience Report (CrUX) Top Million Websites. p. 3 https://github. p. 3 p. 3 p. 3com/zakird/crux-top-lists [Accessed 20-January-2026]

[51] Google. 2026. CLD3 Python Library. p. 6 https://github.com/google/cld3. p. 4

[84] VirusTotal Team. 2026– VirusTotal API

[90] Trend Micro. 2026– Trend Micro Site Safety Center. p. 0 https://global-sitesafety. p. 3trendmicro.com/.

[55] Michael J. Kranch and Joseph Bonneau. 2015. Upgrading HTTPS in mid-air: An empirical study of strict transport security and key pinning.

[67] Shaoor Munir, Sandra Siby, Umar Iqbal, Steven Englehardt, Zubair Shafiq, and Carmela Troncoso. 2023. CookieGraph: Understanding and Detecting First-Party Tracking Cookies. p. 7 In Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, CCS 2023, Copenhagen, Denmark

[94] Lukas Weichselbaum, Michele Spagnuolo, Sebastian Lekies, and Artur Janc. 2016. CSP Is Dead, Long Live CSP! p. 2 On the Insecurity of Whitelists and the Future of Content Security Policy. p. 0 In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria

[95] Yahoo! Inc. 1994–2014. Yahoo Directory. p. 3 https://dir. p. 3yahoo.com/.

[63] McAfee Corp. p. 3 2006– McAfee SiteAdvisor

[88] Trend Micro. 2026– Trend Micro API

[91] Pelayo Vallina, Álvaro Feal, Julien Gamba, Narseo Vallina-Rodriguez, and Antonio Fernández Anta. 2019. Tales from the Porn: A Comprehensive Privacy Analysis of the Web Porn Ecosystem. In Proceedings of the Internet Measurement Conference, IMC 2019, Amsterdam,. The Netherlands

[68] Aysun Ogut, Berke Turanlioglu, Doruk Can Metiner, Albert Levi, Cemal Yilmaz, Orçun Çetin., and A. Selcuk Uluagac. 2024. Dissecting Privacy Perspectives of Websites Around the World: Aceptar Todo, Alle Akzeptieren, Accept All., In 33rd USENIX Security Symposium, USENIX Security 2024, Philadelphia, PA

[97] Eric Zeng, Miranda Wei, Theo Gregersen, Tadayoshi Kohno., and Franziska Roesner. 2021. Polls, clickbait, and commemorative 2 bills: problematic political advertising on news and media websites around the 2020 U. p. 6 p. 6S. elections. In IMC ’21: ACM Internet Measurement Conference, Virtual Event, USA. p. 0 p. 0

[80] Aleksei Stafeev, Tim Recktenwald, Gianluca De Stefano, Soheil Khodayari, and Giancarlo Pellegrino. p. 0 2025. YuraScanner: Leveraging LLMs for Task-driven Web App Scanning. p. 0 In 32nd Annual Network and Distributed System Security Symposium, NDSS 2025, San Diego, California, USA

[81] Avinash Sudhodanan, Roberto Carbone, Luca Compagna, Nicolas Dolgin, Alessandro Armando., and Umberto Morelli. 2017. Large-Scale Analysis & Detection of Authentication Cross-Site Request Forgeries. In 2017 IEEE European Symposium on Security and Privacy, EuroS&P 2017, Paris, France

[83] VirusTotal Team. 2026– VirusTotal API

[65] Meta. 2026. fastText Python Library. p. 6 https://github.com/pyk/fastText. p. 6py [Accessed 20-January-2026]

[71] Joon Sung Park, Joseph C. O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative Agents: Interactive Simulacra of Human Behavior. p. 0 In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, UIST 2023, San Francisco, CA

[74] Nayanamana Samarasinghe, Aashish Adhikari, Mohammad Mannan, and Amr M. Youssef. 2022. Et tu, Brute? Privacy Analysis of Government Websites and Mobile Apps. In WWW ’22: The ACM Web Conference 2022, Virtual Event, Lyon, France

[96] Eric Ye, Xiao Bai, Neil O’Hare, Eliyar Asgarieh, Kapil Thadani, Francisco Perez-Sorrosal,, and Sujyothi Adiga. 2024. Multilingual Taxonomic Web Page Categorization Through Ensemble Knowledge Distillation. p. 0 IEEE Trans. Knowl. Data Eng. 36, 11 (2024), 6614–6627

[95] Yahoo! Inc. 1994–2014. Yahoo Directory

[75] Similarweb. 2026– Similarweb API pricing

[83] VirusTotal Team. 2026– VirusTotal API limits

[91] Pelayo Vallina, Álvaro Feal, Julien Gamba, Narseo Vallina-Rodriguez, and Antonio Fernández Anta. 2019. Tales from the Porn: A Comprehensive Privacy Analysis of the Web Porn Ecosystem. In Proceedings of the Internet Measurement Conference, IMC 2019, Amsterdam,. The Netherlands

[68] Aysun Ogut, Berke Turanlioglu, Doruk Can Metiner, Albert Levi, Cemal Yilmaz., Orçun Çetin., and A. Selcuk Uluagac. 2024. Dissecting Privacy Perspectives of Websites Around the World: Aceptar Todo, Alle Akzeptieren, Accept All., In 33rd USENIX Security Symposium, USENIX Security 2024, Philadelphia, PA

[97] Eric Zeng, Miranda Wei, Theo Gregersen, Tadayoshi Kohno., and Franziska Roesner. 2021. Polls, clickbait, and commemorative 2 bills: problematic political advertising on news and media websites around the 2020 U.S. elections. In IMC ’21: ACM Internet Measurement Conference, Virtual Event, USA.

[85] VirusTotal Team. 2026– VirusTotal API limits

[46] Google. 2026– Privacy Sandbox Feature Status. p. 0 https://privacysandbox. p. 3google.com/overview/status. p. 3

--- Page 1 ---

LLM-Based Website Classification for Targeted Web Measurements is a paper that investigates the use of Large Language Models (LLMs) to enable targeted web measurement studies, showing that LLMs can provide a practical and scalable approach to support targeted web measurements.

Web measurements are well-established methodology for assessing the security and privacy landscape of the Internet Existing top lists of popular websites are unlabeled and lack semantic information about the nature of the included websites, making targeted web measurements challenging. This paper investigates the use of Large Language Models (LLMs) to enable targeted web measurement studies. The key intuition is that LLMs can perform automated website classification by leveraging contextual information, natural language understanding, and the extensive knowledge they have gained from training on massive datasets constructed by scraping diverse web sources.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Scalable targeted web measurement methodology can be implemented by using an LLM to perform a Fast Pre-Filtering step on the Tranco list without website access, followed by a High-Precision Refinement step using LLM classification with live website access. This approach reduces potential bias introduced by ad hoc heuristics and minimizes expensive full website visits.

  2. LLMs can be used for automated dataset construction to create representative datasets for targeted measurements, such as governmental or pornographic websites, starting from the Tranco list. This capability allows researchers to build high-quality labeled datasets with minimal manual effort while maintaining high accuracy against independent ad hoc datasets.

  3. A two-step filtering strategy using LLM classification can be applied to large lists of websites to balance efficiency and accuracy, as it shows that classification without website access is faster but less precise than classification with access enabled. This allows for more efficient targeted dataset construction compared to traditional methods that require visiting every website.

Related papers