Internet firewalls were inspired by brick firewalls built between buildings to prevent the spread of fires. There are various types of firewall strategies that can provide protection against internet attacks. Packet filters and proxy firewalls were early strategies that had limitations. Stateful firewalls improved on these by keeping track of network connections and translating IP addresses, making internal networks invisible to the outside. Stateful inspection firewalls can also filter application data traffic for added security. The optimal firewall strategy depends on the specific network environment.