How to filter/sniff out web pages according to dat

2019-05-30 03:34发布

问题:

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