Class: BlockingFilter

BlockingFilter(text, regexpSource, contentTypeopt, matchCaseopt, domainsopt, thirdPartyopt, sitekeysopt, rewriteopt, nullable, cspopt)

new BlockingFilter(text, regexpSource, contentTypeopt, matchCaseopt, domainsopt, thirdPartyopt, sitekeysopt, rewriteopt, nullable, cspopt)

Class for blocking filters
Parameters:
Name Type Attributes Description
text string see Filter()
regexpSource string see RegExpFilter()
contentType number <optional>
see RegExpFilter()
matchCase boolean <optional>
see RegExpFilter()
domains string <optional>
see RegExpFilter()
thirdParty boolean <optional>
see RegExpFilter()
sitekeys string <optional>
see RegExpFilter()
rewrite string <optional>
<nullable>
The name of the internal resource to which to rewrite the URL. e.g. if the value of the $rewrite option is abp-resource:blank-html, this should be blank-html.
csp string <optional>
Content Security Policy to inject when the filter matches
Source:

Extends

Members

text :string

String representation of the filter
Type:
  • string
Inherited From:
Source:

type :string

Filter type as a string, e.g. "blocking".
Type:
  • string
Inherited From:
Source:

Methods

(package) [undefined]() → {ActiveFilter}

Yields the filter itself (required to optimize Matcher).
Inherited From:
Source:
Yields:
Type
ActiveFilter

serialize() → {string}

Serializes the filter for writing out on disk.
Inherited From:
Source:
Yields:
Type
string