A firewall is a system designed to prevent unauthorized access to or from a private network. Firewalls can be hardware- or software-based and are often used in conjunction with other security measures, such as anti-virus software. Firewalls typically allow authorized traffic, such as legitimate web traffic, while blocking unauthorized traffic, such as malicious traffic from hackers.

Difference 101