A firewall is software or hardware that creates a protective barrier between your computer and potentially damaging content on the Internet or network. The firewall helps to guard your computer against malicious users, and also against malicious software such as computer viruses and worms.