Page 1 of 1

Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 1:30 pm
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?

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 2:00 pm
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.

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 4:04 pm
by Det20
I'm getting an empty, white site in Chromium. Can i check SourceHTML <> ''?

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 4:17 pm
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.

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 4:22 pm
by Det20
I want, but ... how can i do? In LoadEnd? Do you have an example for me?

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 4:27 pm
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.

Re: Detect if Antivirus block my app

Posted: Tue Dec 18, 2018 4:41 pm
by Det20
I'll try, thank you!