A firewall is a type of hardware and/or software that guards a private network by analyzing the information entering and leaving a network. It allows you to connect a computer to a network and provides protection against spyware and spam. Additionally, it is not the Internet's equivalent of a phone book, but rather maintains a directory of domain names and translates them to Internet Protocol (IP) addresses. It is also not software that allows you to connect to the internet.