Skip to content
MateusBMP edited this page Nov 16, 2026 · 4 revisions

Usage

GUI

Start BlockAds from the application menu, or run blockads (--hidden starts in the tray only). Pages:

  • Home: protection state, totals, block rate, recent and top blocked domains, bypass warnings.
  • Query log: every query, with search, filters, time ranges, block/allow actions and CSV export.
  • Statistics: 24 h / 7 d / 4 w / 12 m charts, top domains, block reasons.
  • Filters: the catalog (the same ~100 lists as on Android), custom lists, update now, and Overlap…: how many of each list's domains other lists already block, which pairs share the most, and lists that add nothing on their own.
  • Rules: your block and allow rules, import from a file or the clipboard (hosts, adblock or plain format) and export.
  • DNS: upstream presets, custom servers and stamps, "encrypted only", block response, SafeSearch, YouTube Restricted.
  • Networks: the current connection and trusted networks, optionally pinned to one Wi-Fi access point.
  • Settings / Advanced / About: theme, language (English, Português do Brasil), notifications, backup and restore, diagnostics, firewall options; the About page shows the version, copyright, licence, the credit to blockads-android and each filter list's origin.

The tray icon shows the state (green: protected, yellow: needs attention, e.g. partial protection, grey: paused, red: off) and has toggle and pause actions. Actions that weaken protection ask for the admin password once (see Architecture#d-bus-api-and-permissions).

blockadsctl

blockadsctl talks to the daemon over the system D-Bus. --no-ask-password never prompts for authentication, and --version prints the version, copyright and licence (as do blockads, blockadsd, blockads-update and blockads-fw):

$ blockadsctl --version
blockadsctl (blockads-linux) 0.1.0
Copyright (C) 2026 MateusBMP
License GPLv3: GNU GPL version 3 only <https://www.gnu.org/licenses/gpl-3.0.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Based on blockads-android <https://github.com/pass-with-high-score/blockads-android>; see NOTICE.
Command Does
status protection state, upstream, IPv6, containers, trusted network, bypass warnings
pause [15m|1h|2d|forever] / resume stop and restart filtering (pause asks for the admin password)
test DOMAIN would this domain be blocked, and by which list?
block / unblock / allow / unallow DOMAIN custom rules (with subdomains)
rules list the custom rules
filters [--all], filters enable ID..., filters disable ID..., filters update list the filter lists, turn lists on or off, download updates now
filters add NAME URL..., filters remove ID custom lists (one or more URLs, merged)
filters overlap [--json] how much the enabled lists duplicate each other (per list, per pair, overall)
log [-n N] [-f] [--verdict blocked] [--search TEXT] [--csv FILE] recent queries (-f follows)
stats [24h|7d|4w|12m], top statistics and top domains
feature NAME on|off safesearch, youtube_restricted, doh_blocklist, cname_check, encrypted_only
upstream SPEC... [--fallback SPEC...] [--encrypted-only|--allow-plain] DNS servers: presets, sdns:// stamps or URLs
logging, clear-log query log recording; delete the log (statistics are kept)
networks, networks add [UUID] [--mode pause|network_dns] [--pin-ap|--bssid MAC], networks remove UUID trusted networks (NetworkManager connections; add without a UUID trusts the current one); --pin-ap trusts a Wi-Fi network only through the current access point
settings, backup, restore [FILE], reset settings as JSON, backup, restore (also BlockAds for Android backups), reset
diagnostics write a diagnostics report (JSON; nothing is sent anywhere)

Most read commands accept --json. Run blockadsctl COMMAND --help for details.

Examples:

blockadsctl test doubleclick.net
blockadsctl pause 15m
blockadsctl log -f --verdict blocked
blockadsctl upstream quad9 --fallback cloudflare --encrypted-only

Clone this wiki locally