使用WFP和C#简单过滤http流量 - 是否可能? [英] Simple filtering of http traffic using WFP and C# - is it possible?

查看:124
本文介绍了使用WFP和C#简单过滤http流量 - 是否可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用WFP和C#过滤http请求?

Is it possible to filter http requests using WFP and C#?

我想在后台运行并阻止所有带有特定字符串的URL。

I'd like something that runs in the background and blocks all URLs with a specific string in it.

一种方法是为WFP的用户模式API编写托管C ++包装吗?如果是这样的话,这会让我有多接近上述理想?这样做难吗?这是采用此代码的方法吗?

Would one approach be to write managed C++ wrappers for the user mode APIs of WFP? If so, how close to the above ideal would this get me? Would it be difficult to do this? Is that the approach taken in this code?

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/a65bf197-937b-401e-b15f-0e1c3decdb14/ windows-filtering-platform-and-net?forum = wfp

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/a65bf197-937b-401e-b15f-0e1c3decdb14/windows-filtering-platform-and-net?forum=wfp

提前感谢任何帮助。我曾希望这很容易,但看起来并不是这样。

Thanks in advance for any help at all. I had hoped that this would be easy, but it doesn't look this way.

推荐答案

这将需要一个内核模式WFP标注解析字符串。 内核不支持C#。

This will require a kernel mode WFP callout to parse out the string.  C# is not supported in the kernel.

希望这有帮助,


这篇关于使用WFP和C#简单过滤http流量 - 是否可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆