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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Detect if Antivirus block my app

Post Reply
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Detect if Antivirus block my app

Post by Det20 »

Hello,

sometimes CC-Cleaner blocks access to a webpage. Is there a way to detect this if my app is sure, that the webpage is alive? Maybe using content-len?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Detect if Antivirus block my app

Post by salvadordf »

Perhaps using ping with the Indy components but the best solution would be to send a message to the cc-cleaner authors to add that website to the white list.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Detect if Antivirus block my app

Post by Det20 »

I'm getting an empty, white site in Chromium. Can i check SourceHTML <> ''?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Detect if Antivirus block my app

Post by salvadordf »

I'm not sure...

Perhaps the HTML code has something you can use to detect that it was created by cc-cleaner.
Check the response headers too.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Detect if Antivirus block my app

Post by Det20 »

I want, but ... how can i do? In LoadEnd? Do you have an example for me?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Detect if Antivirus block my app

Post by salvadordf »

The MiniBrowser demo stores the response headers in the TMiniBrowserFrm.Chromium1ResourceResponse procedure.
Perhaps some header can be used to uniquely identify content created by cc-cleaner but I'm not sure. I've never done that.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Detect if Antivirus block my app

Post by Det20 »

I'll try, thank you!
Post Reply