Filtering packets by its content

I would like to filter packet by its content. For example I have an TCP packet which contains a string “hello” and I want it to throw away. Is there any way to do that?

As far as i know this cant be done currently. :frowning:

But i would like to see it. ;D

It is possible and is called Deep Packet Inspection: .

Potentially dangerous in the hands of states with Big Brother tendencies.

And can I replace the content? I would like to replace the “hello” by “this is censored”.
Is there a good tool for Windows?

Not sure if there is such a program for home users. As far as I know about deep packet inspection it is meant for providers and other professional players.