Welcome Guest Search | Active Topics | Sign In | Register

How to add host or ip into EO.WebBrowser's blacklist Options
clorest
Posted: Saturday, July 4, 2015 11:29:30 PM
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 ?
clorest
Posted: Sunday, July 5, 2015 10:01:17 AM
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?
eo_support
Posted: Sunday, July 5, 2015 2:30:09 PM
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!
clorest
Posted: Monday, July 6, 2015 3:00:54 AM
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
eo_support
Posted: Monday, July 6, 2015 9:25:28 AM
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.aspx

Thanks!
clorest
Posted: Monday, July 6, 2015 10:44:05 PM
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.aspx

Thanks!


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.
eo_support
Posted: Tuesday, July 7, 2015 2:50:13 PM
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!
clorest
Posted: Wednesday, July 8, 2015 12:22:34 AM
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.Brick wall
eo_support
Posted: Wednesday, July 8, 2015 1:20:36 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.