Custom Rules
AdGuard Private supports multiple custom rule formats, allowing you to configure flexibly as needed.
AdGuard Private supports multiple custom rule formats, allowing you to configure flexibly as needed. Here are common rule formats and examples:
Rule Format | Example | Description |
---|---|---|
Domain Blocking | ||example.org^ | Block example.org and all its subdomains |
Whitelist | @@||example.org^ | Add example.org and all its subdomains to the whitelist |
DNS Redirection | 127.0.0.1 example.org | Resolve example.org to the specified IP |
Comment | ! Comment text or # Comment text | Add rule explanation, does not affect actual filtering |
Regular Expression | /REGEX/ | Use regular expressions to match domains |
Advanced Usage
- You can use multiple rules in combination
- Rule priority: Whitelist > Blacklist > DNS Redirection
- Supports importing third-party rule lists
For more details, please refer to the AdGuard Home Hosts Blocklists documentation.