Dams are used to protect downstream towns from uncontrolled water flow. Firewalls do the same for protected systems.