What Are Computer Firewalls?

Why you can trust SafeWise
products considered
250+
research hours in 25+ in-home tests
10k+
years of combined experience
176+
homes and people protected
10M+

For over 11 years, SafeWise experts have conducted independent research and testing to write unbiased, human reviews (not robots). Learn more.

A firewall is usually the first line of defense when it comes to protecting private information and keeping out threats like viruses and malware. Firewalls monitor incoming and outgoing traffic on a computer network—whether it’s your home Wi-Fi network or a large shared network at a company.

Thwart hackers with the best internet security tips!
Sign up for our free weekly newsletter.

By signing up, you agree to our Terms and Conditions and Privacy Policy.

What does a firewall do?

Firewalls work as a barrier between your protected network and unauthorized users and networks. But a firewall isn’t foolproof—it may act as a bouncer that checks out individual users before they’re allowed behind the velvet rope, but it may not catch every fake ID, and it won’t hunt down and kick out the riff raff if they do sneak by. That means you shouldn’t rely on a firewall alone to keep the bad element out of your network, files, and info.

How do firewalls work?

You can implement firewalls in either software or hardware form, or as a combo. Once you have a firewall in place, all traffic entering or leaving the protected network must pass through it. The firewall inspects each message or action against specified security criteria. Anything that isn’t up to snuff gets blocked.

Types of firewalls

There are four main types of firewalls. Although each is designed to perform the same basic security function, the way they do their job is different. Many firewalls combine two or more of these types to deliver an extra security punch.

1. Packet filters 

This type of firewall looks at information known as packets. Packets are messages that consist of control information and user data. Packet filters check each packet of information as a whole instead of examining the specific data. Based on the security parameters, the firewall will allow, drop, or reject the packet.

2. Application-level gateways

These firewalls apply security measures to specific applications and protocols, such as File Transfer Protocol (FTP) or Hypertext Transfer Protocol (HTTP). Application firewalls may intercept all packets entering or leaving a specific application, which adds extra security but can also slow down the transfer of data.

3. Circuit-level gateways

A circuit-level gateway controls how information is transmitted over a single network. Once this type of connection is made, packets can pass over the network between designated hosts without any additional review. This prevents the latency issues that application-level gateways can face.

4. Proxy servers

A proxy server is a firewall that hides the network address of the computers on the network. This means the proxy server connects with the internet and handles all communication, protecting the computers and the network behind it. You can set up a proxy server to allow or block everything from certain types of traffic (for example, web pages or HTTP files). Because a proxy server intercepts and analyzes all traffic passing through, it can slow down the entire network.

Firewalls are crucial to any internet security plan. Consider using a firewall in conjunction with other security measures like antivirus software and identity theft protection.


Compare the best internet security products

Brand
Best for
Starting price
Specs
Standout feature
Learn more
Best identity theft protection

$1 million recovery insurance

Two-factor authentication
Best VPNWorks on 6 devices 5,100 servers

60 countries

Best parental control Unlimited devicesEmail and social media monitoring, powerful parental controls
Best antivirus/malware software Protects up to 10 devices Includes VPN and password manager
Best password manager Unlimited devices with Premium plan VPN and dark web monitoring with Premium plan

Amazon.com price as of post date. Offers and availability may vary by location and are subject to change. Read full disclaimer.
*First year only. Regular price $99.48/yr.
**First year only. Regular price $59.99/yr.

Rebecca Edwards
Written by
Rebecca is the Managing Editor and lead safety expert at SafeWise.com, where she's been researching, testing, and writing about home and personal security for over 12 years. Her safety smarts come from both real life and professional experience—as a single parent trying out safety and security gadgets to protect her family and a former college director responsible for safety plans and strategies to keep buildings, grounds, and hundreds of students and faculty safe every day. With 30 years of experience as a journalist and blogger, she's become a go-to source for trustworthy, practical advice on everything from the best home security systems and smart gadgets to keeping kids safe online, preventing package theft, and understanding crime trends nationwide. PBS NewsHour, The Today Show, NPR, Vice, TechCrunch, The Washington Post, HGTV, Marketplace, On the House, and more have featured Rebecca's expert insights and recommendations. Whether it's protecting your home, your loved ones, or your peace of mind, Rebecca makes safety simple, doable, and real.

Recent Articles

woman talking on phone
How to Cancel SimpliSafe
SimpliSafe doesn’t charge any cancellation fees or make you jump through hoops to stop service....
Cove security system panel in box and yard sign in box
Cove Home Security System Review 2025
Cove DIY home security stands out with customer-first practices and extensive alarm response options to...
sensor light on a residential building
Best Motion Detector Lights of 2025
Check out our round-up of the top five best motion sensor lights of 2025 with...
Man and woman couple wife husband set up surveillance security camera
Best Apartment Security Systems of 2025
SimpliSafe is the best apartment security system with no contracts, wireless equipment, and affordable or...