How to filter/sniff out web pages according to data(text) contained?

和自甴很熟 提交于 2019-12-23 02:47:05

问题


I am looking for information useful for my little project that allows me to sniff web page received from a web server and before it appear in the browser I will test the content (text),then according to this test,my program blocks(or redirects) the page in case the test is false...

I found a very complete library is scapy, he can sniff and forge all the traffic including http replies..

I found someone looking to do similar things , but the response suggested to develop a proxy..

my question is: Is what it takes make a proxy? or just scapy


回答1:


Smarty,

To answer your question yes you can do this with scapy but essentially you will be creating a proxy in the process.

As a matter of fact your request is practically the definition of a web proxy server.

dc



来源:https://stackoverflow.com/questions/9774525/how-to-filter-sniff-out-web-pages-according-to-datatext-contained

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!