Using the chrome-php
library https://github.com/chrome-php/chrome I'm trying to block some URLs during navigation to a web page.
From chromedevtools I've decided to use Network.setBlockedURLs
method
$page->getSession()->sendMessageSync(
new Message('Network.setBlockedURLs', [
'urls' => [
'example.com',
]
])
);
Am I doing that syntactically correctly or was something missed?
Also, can I specify all the subdomains with a wildcard like this *.example.com
?