A firewall is a part of a computer system or network that is designed to block unauthorized access while permitting authorized communications. This prevents viruses, Trojans, malware, and unauthorized users from using your system to access the Internet and potentially damage a system further.