How to block outgoing connection to Google Server?

Hi there,

is there any way to block outgoing connections to Google Server?

For example, I see an outgoing connection to this URL:

https://fonts.gstatic.com/s/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVI.woff2.

This is a Google Fonts Server to load the Google Fonts.

It is an outgoing connection from a Wordpress Site and I can not disable it with a WP Plugin, so I thought I simply use a JavaScript Code in the Head which will block this connection instantly.

Does someone knows a JavaScript code to block this connection?

Thanks for help!

are you talking in general about every website, or it is a specific one under your control?

I mean in general, is there any way to block outgoing connectons to urls with JavaScript?

yes it is possible with some browser extensions, if I recall correctly there is already one around but I forgot the name