Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

CEF chomium unwanted connections

Post Reply
carlos.ricardo
Posts: 3
Joined: Thu Feb 22, 2024 7:13 pm

CEF chomium unwanted connections

Post by carlos.ricardo »

Is there a way to block network connections, except to my application specific host, and its endpoints? Even running local file page, CEF do some connections to some suspicious IPs. I have tried some arguments swtichs, but without sucess.

it looks a chrome /chromium default behavior, but would like to disable it, if possible.
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4304
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: CEF chomium unwanted connections

Post by salvadordf »

Hi,

Try setting GlobalCEFApp.DisableBackgroundNetworking to TRUE before the GlobalCEFApp.StartMainProcess call in the DPR file.
carlos.ricardo
Posts: 3
Joined: Thu Feb 22, 2024 7:13 pm

Re: CEF chomium unwanted connections

Post by carlos.ricardo »

Unfortunately it doesn't work fo me, I also tried the following properties:
MetricsRecordingOnly = True,
DisableRequestHandlingForTesting = True,
HyperlinkAuditin= False;

And the comand line switchs:
--disable-networking,
--no-pings.

I'm using Cef4Delphi CEF4Delphi-107.0.5304.122 with CEF 107.1.12+g65b79a6+chromium-107.0.5304.122_windows32
dilfich
Posts: 344
Joined: Thu Nov 30, 2017 1:17 am

Re: CEF chomium unwanted connections

Post by dilfich »

--disable-networking
It's more correct
--disable-background-networking

This is an old question.
https://stackoverflow.com/questions/5814334/how-to-disable-google-chromes-unrequested-connections
Post Reply