This is a multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

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 FormatExampleDescription
    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 Redirection127.0.0.1 example.orgResolve example.org to the specified IP
    Comment! Comment text or # Comment textAdd 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.