Strong blocking mode and rule

Strong blocking mode is an innovative blocking strategy done by XBrowser in the early days, its advantage is simple and efficient, this article to introduce the basic principle of powerful blocking and XBrowser and the syntax of the rules in this mode.

Basic Principles

In strong blocking mode, the browser will automatically block all resources and scripts that do not belong to the domain, usually some advertising resources come from third-party ad servers, the basic strategy of strong blocking is to allow resources and scripts under the current domain, according to some specific algorithms with the given blocking rules to let go of some normal third-party resources and scripts.

This strategy is the opposite of regular ad blocking; in other words, whereas regular ad blocking identifies ads through a set of rules and blocks them, strong blocking identifies normal third-party resources and scripts through rules and allows them to pass.

In strong blocking mode, regular blocking rules will still be effective, it’s just that in strong blocking mode even without subscribing to many of the regular blocking rules you can achieve good blocking results. Since you don’t have to rely on a lot of regular rules, the performance is usually very good. The downside is that there may be cases where normal third-party resources may be blocked, at which point we need to rely on strong blocking rules to tell us which third-party resources and scripts are allowed. The following is the syntax of the rule in strong ad blocking mode.

Rule Syntax

Strongly blocking rules use “==” as the rule’s identifier prefix, followed immediately by the keyword, and multiple keywords can be separated by commas.

Global Scope


The following syntax is equivalent


Domain Scope Syntax

The following syntax is equivalent