过滤网站关键字 [英] filter website keyword

查看:79
本文介绍了过滤网站关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像标题一样,我想编写一个小型应用程序,可以监视用户的网络浏览器(任何浏览器:Internet Explorer,firefox ...).在用户检索和呈现网页之前,我的应用将读取网页关键字(具体来说,标签< meta> name = Keywords中的内容).如果这些关键字之一=我的黑名单,它将阻止该网页和/或重定向到其他网页(我已定义).

我的问题是:
1)我的想法可行吗?
2)我搜索谷歌,我有两种方式,使用HTTP代理服务器和嗅探器包.使用http代理是个好主意,但是如果用户更改其代理,我的应用程序将无用.有什么办法可以解决我的想法吗?
3)有了嗅探器包,我得到了很多教程,但是我想确保嗅探器包可以做我想做的事吗?

任何意见,建议,建议,参考,教程都很好,我非常感谢.感谢您的阅读.

p/s:我的英语不够好,所以请理解我的单词的一般含义.预先感谢.

Just like the title, i want write a small app that could monitor user''s web browser (any browser: internet explorer, firefox ...). Before user can retrieve and render webpage, my app will read webpage keyword (specifically, content in tag <meta> name=Keywords). If one of those keywords = my blacklist, it will block that webpage and/or redirect to other webpage(i have defined).

My questions are:
1) Is my idea possible?
2) I searched google, i get 2 way, use http proxy server and sniffer packet. With http proxy that''s good idea but if user change their proxy, my app''s useless. Are there any method for my idea?
3) With sniffer packet, i get a lot of tutorials, but i want reassure that Can sniffer packet do what i want?

Any opinions, suggestions, advices, references, tutorials are good, i appreciate it all. Thank for reading.

p/s: My English is not good enough, so just understand my word as general meaning please. Thank in advance.

推荐答案

.NET中唯一的方法是通过代理(最简单的HTTP代理方法).通过嗅探并不能取得很大的成就,因为您只能读取并且不能更改嗅探到的数据包的内容(要进行更改,还必须研究防火墙的工作方式,但是.NET无法做到这一点).

如果您制作的是合法应用,那么您不必担心用户更改代理,请在安装时向他们显示一条消息.如果您是网络管理员,并且想过滤员工正在浏览的内容,则可以将Internet设置为仅通过代理应用程序共享.
The only way to do it in .NET is by proxy (the most simple way by HTTP Proxy). You can''t achieve much by sniffing, as you can only read and not change the content of the sniffed packets (in order to also change you have to study how firewalls work, but that is not possible with .NET).

If you make a legal app, than you shouldn''t be concerned about users changing the proxy, show them a message at install. If you are a network admin and want to filter what the employees are browsing you can probably setup the internet to be shared through your proxy app only.


好,谢谢您的建议,我只想为了制作一个阻止成人网站的应用,您阐明了我的想法.也许将来我会学习有关防火墙的知识,但是现在是学习HTTP代理的时候了.

非常感谢^ _ ^!
Ok Thank for your suggestions, i just want to make an app to block adult website, you clarified my idea. May be in future i will learn about firewall stuff, but now it''s time for studying http proxy.

Thank you very much ^_^!


这篇关于过滤网站关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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