Classifies domains based on Steven Black's unified host list which blocks ads, malware, and tracking domains. The function checks if a domain appears in the blocklist and categorizes it accordingly.

stevenblack_cat(domains, use_file = NULL)

Arguments

domains

domain names as character vector

use_file

path to a local Steven Black hosts file. If NULL, downloads from GitHub once per session and reuses it

Value

A tibble following classification_results. Source-specific data are retained in details; all source labels are retained in labels.

Details

Steven Black's host list is a consolidated list from multiple sources including adaway.org, mvps.org, malwaredomainlist.com, and someonewhocares.org.

Listed hosts receive blocked; absent hosts have status = "no_match". Neither outcome determines safety or a content subclass.

Publication dates come from the .metadata.json sidecar written by the downloader, checked against the file contents. source_fetched_at is the download time. Files without matching metadata return NA dates; filesystem timestamps are not used.

See also

source_vintage for the provenance of every category source

Examples

if (FALSE) { # \dontrun{
stevenblack_cat("doubleclick.net")
stevenblack_cat(c("google.com", "googleadservices.com", "malware-example.com"))
} # }