[webkit-gtk] [Q] block all network accesses – how?

Michael Catanzaro mcatanzaro at redhat.com
Wed Aug 2 10:48:11 PDT 2023


On Wed, Aug 2 2023 at 04:47:47 PM +0000, Albrecht Dreß 
<albrecht.dress at posteo.de> wrote:
> I use WebKitGtk in a MUA, which for privacy reasons shall block all 
> external network accesses unless the user explicitly allows them.  
> Using a web extension, I could redirect these accesses to 
> “about:blank”.  However, I /still/ see webkit opening tcp 
> connections to the remote sites, which IMHO shouldn't happen, as it 
> already leaks information to a potential attacker.

You should be able to use the WebKitWebPage::send-request signal to 
block all network requests. If that doesn't work, it's probably a bug.

Michael




More information about the webkit-gtk mailing list