A method and apparatus for datastream analysis and blocking. According to
one embodiment of the invention, a network access device, analyzes
(without proxying) each of a stream of packets traversing a single
connection through the network access device from an external host to a
protected host. In addition, the network access device forwards each
allowed packet of the stream of packets as long as the connection is
active. However, if one of the stream of packets is determined to be
disallowed as a result of the analyzing, then the network access device
discards the disallowed packet and terminates the connection, causing the
protected host to discard those packets received on the terminated
connection.