A firewall is a program that blocks certain internet programs and sites from accessing a computer. While a firewall can protect against some online threats, it cannot detect the contents of emails or protect against phishing scams. Firewalls can be either software already installed on a computer or hardware that uses a router and ethernet card to control internet access and filter network traffic.