Manage AdGuard Home — the network-wide DNS server that blocks ads, trackers, and malware for your entire network.
http://192.168.1.1:3000 or https://your-vps.example.com)bash
export ADGUARD_USERNAME=your_username
export ADGUARD_PASSWORD=your_password
export ADGUARD_BASE_URL=http://192.168.1.1:3000
status#Get overall AdGuard Home status — DNS status, filtering enabled, protection level.
bash
adguard-home-status
stats#Get filtering statistics: total blocked, allowed, queries today, top blocked domains.
bash
adguard-home-stats [period] # period: hour, day, week, month, year (default: day)
blocked_domains#Get the most frequently blocked domains.
bash
adguard-home-blocked-domains [limit] # default: 20
add_rule#Add a custom DNS blocking rule.
bash
adguard-home-add-rule "<domain or rule>"
# Examples:
# adguard-home-add-rule "example.com" # block single domain
# adguard-home-add-rule "||example.com^" # AdGuard blocking syntax
# adguard-home-add-rule "@||example.com^" # allowlist exception
remove_rule#Remove a custom DNS rule by content.
bash
adguard-home-remove-rule "<rule>"
list_rules#List all custom DNS rewrite rules.
bash
adguard-home-list-rules
query_log#Query the DNS query log — find what domains were resolved on the network.
bash
adguard-home-query-log [domain_filter] [limit]
# Example: adguard-home-query-log "ads" 50
toggle_filtering#Enable or disable DNS filtering (ad blocking).
bash
adguard-home-toggle-filtering true # or false
https://github.com/AdguardTeam/AdGuardHome/wiki/Config#web-interface