Example
Parameters
The URL to block. This can be a full URL or a domain.Ex.
https://google.com or google.comUse this method to add a domain to the blocklist
local mode to populate new entries
in the allowlist. In cloud mode, the allowlist is populated automatically.await detector.block("google.com");
console.log(await detector.url("https://google.com"));
https://google.com or google.comWas this page helpful?