A firewall is a security system designed to block unauthorized access to a computer. It works by monitoring the data flowing in and out of a network and blocking those that do not meet specific criteria. The firewall serves as a wall that protects a computer from malicious attacks and viruses. Most operating systems have built-in firewalls, but users can get free and paid firewalls online.