This is a project of using the nDPI library to filter http protocol.
The nDPI source code link: https://github.com/ntop/nDPI
Its functions include monitoring where the HTTP packets go, analyzing the packet's IP address, Host, user agent, and so on.
Before compiling, you need to ensure that "cmake", "libpcap-dev", "cronolog", "boost", "activemq cpp" are installed on the machine.
https://github.com/qiyugfh/nDPI-httpfilter/blob/master/HowToInstallActiveMQ-CPP.md
https://github.com/qiyugfh/nDPI-httpfilter/blob/master/HowToInstallBoost.md
cd nDPI-httpfilter/build
cmake ..
make
bash run.sh start
bash run.sh status
bash run.sh stop
bash run.sh restart
cat run.log
cat output/httpfilter.log
tail -n 100 /var/log/ndpilog/20180919_23273.info