A firewall is a system designed to prevent unauthorized access to or from a private network . You can implement a firewall in either hardware or software form, or in a combination of both. Firewalls prevent unauthorized internet users from accessing private networks connected to the internet, especially intranets.