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

Return to the regular view of this page.

Custom Rules

NullPrivate supports multiple custom rule formats, allowing flexible configuration to meet your needs.

    NullPrivate supports multiple custom rule formats, allowing flexible configuration to meet your needs. Below are the commonly used rule formats and examples:

    Rule FormatExampleDescription
    Domain Block||example.org^Blocks example.org and all its subdomains
    Allowlist@@||example.org^Adds example.org and all its subdomains to the allowlist
    DNS Redirect127.0.0.1 example.orgResolves example.org to the specified IP
    Comment! comment or # commentAdds rule comments without affecting actual filtering
    Regex/REGEX/Matches domains using regular expressions

    Advanced Usage

    • You can combine multiple rule types
    • Rule priority: Allowlist > Blocklist > DNS Redirect
    • Supports importing third-party rule lists

    For detailed information, please refer to the AdGuard Home Hosts Blocklists documentation.