如何在C#或VC ++中创建Web过滤器 [英] How to create web filter in C# or VC++

查看:115
本文介绍了如何在C#或VC ++中创建Web过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想用C#或C ++创建一个Web过滤器。我在Google上搜索过此内容,但没有任何相关信息。正是我想要的是如果有人试图打开xyz.com,它应该重定向到localhost ..请不要建议主机文件,它很容易破解。



提前致谢

Hi All,

I wanted to create a web filter either in C# or C++. I have search about this on Google, but didn't any relevant information. Exactly what I want is if someone tried to open "xyz.com", it should be redirect to localhost.. please do not suggest hosts file, it is very simple to hack.

Thanks in advance

推荐答案

您可以创建LSP(分层服务提供商)来捕获互联网流量。通过分层服务提供商,您可以拦截和修改入站和出站互联网流量。
You can create LSP(Layered Service Provider) for capturing internet traffic. Through Layered Service Provider you can intercept and modify inbound and outbound Internet traffic.


您可以在Windows SDK中的位置找到LSP样本



(驱动器号)\程序文件\ Microsoft软件SDK \ Windows \v7.1 \Samples \ netds \ winsock \lsp如果您有7.1 Microsoft SDK。

You can find LSP sample in windows SDK at location


"(Drive Letter)\Program Files\Microsoft SDKs\Windows\v7.1\Samples\netds\winsock\lsp" if you have 7.1 Microsoft SDK.



如果您有Vista SDK,那么它将位于(驱动器号)\ Program Files \ MicroSoft SDKs \ Windows \\\\\\\\\\\\\\\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ b $ b可以从Microsoft网站下载Windows SDK

http:/ /www.microsoft.com/download/en/details.aspx?id=8279 [ ^ ]


这篇关于如何在C#或VC ++中创建Web过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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