|
Rank: Advanced Member Groups: Member
Joined: 6/24/2015 Posts: 39
|
hi, I am coding a C# winform app, and I embedded CefWebBrowser in it. But when a website transfer something to another website, the anti-virus will warn sometimes. So I want to forbid this type of "transfer", can you help me ?
|
|
Rank: Advanced Member Groups: Member
Joined: 6/24/2015 Posts: 39
|
does anybody have ideas??
or How can I config the web security of EO.WebBrowser to avoid this?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You will need to contact 360 on this. I do not believe there is any well known way to disable this warning. If such well known method exists, then everyone will use it and it will make such warning feature useless because everyone would be able to avoid triggering it.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/24/2015 Posts: 39
|
eo_support wrote:Hi,
You will need to contact 360 on this. I do not believe there is any well known way to disable this warning. If such well known method exists, then everyone will use it and it will make such warning feature useless because everyone would be able to avoid triggering it.
Thanks! Does EO provide API or methods to forbid accesssing to some certain host like "greencompute.org" which can be defined by me
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, No. EO.WebBrowser does not have such feature built-in. However you can use custom resource handler to intercept every request and then "custom handling" certain request you want to filter out. For example, you can do nothing for those request that goes to "greencompute.org", then the WebBrowser won't try to connect to them. See here for more details on how to use custom resource handler: http://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspxThanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/24/2015 Posts: 39
|
eo_support wrote:Hi, No. EO.WebBrowser does not have such feature built-in. However you can use custom resource handler to intercept every request and then "custom handling" certain request you want to filter out. For example, you can do nothing for those request that goes to "greencompute.org", then the WebBrowser won't try to connect to them. See here for more details on how to use custom resource handler: http://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspxThanks! hi, every request has default actions, I means, if I return false in Match function, ProcessRequest will not be called and this request will do his default action. but if I return true in Match function, then ProcessRequest is called. In this case, will this request still do his default action? if yes, then I cannot forbid the request by ProcessRequest. here is my code
Code: C#
internal class SampleHandler : ResourceHandler
{
public const string SampleUrlPrefix = "greencompute.org";
public override bool Match(Request request)
{
//Return true if the request Url matches our scheme. In that
//case ProcessRequest will be called to handle the request
return request.Url.IndexOf(SampleUrlPrefix) >= 0;
}
public override void ProcessRequest(Request request, Response response)
{
// do nothing
}
}
The code above does not to work, I have tried.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
No. If you returns true from Match, then it means your code, not the default handler will handle this request. As such default action will not be executed if you returns true.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/24/2015 Posts: 39
|
eo_support wrote:Hi,
No. If you returns true from Match, then it means your code, not the default handler will handle this request. As such default action will not be executed if you returns true.
Thanks!
Code: C#
internal class SampleHandler : ResourceHandler
{
public const string SampleUrlPrefix = "greencompute.org";
public override bool Match(Request request)
{
//Return true if the request Url matches our scheme. In that
//case ProcessRequest will be called to handle the request
return request.Url.IndexOf(SampleUrlPrefix) >= 0;
}
public override void ProcessRequest(Request request, Response response)
{
// do nothing
}
}
So the code above will do nothing for every request whose url contains "greencompute.org". But still, 360 popups again.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You will need to contact 360 for such matters. We have no way of knowing what triggers their alert and it's their designed goal to give such alert.
Thanks!
|
|