Instance methods
block()
Use this method to add a domain to the blocklist
We recommend only using this method in local
mode to populate new entries
in the allowlist. In cloud
mode, the allowlist is populated automatically.
Example
Parameters
The URL to block. This can be a full URL or a domain.
Ex. https://google.com
or google.com
Return Value
The return value is a promise that resolves with a result object.
Success
If the addition was successful, the object will contain the following properties:
Failure
However, if the addition was unsuccessful, the object will contain the following: