Learn how to close a port in Windows 7’s firewall.
In this example I’m going to block all traffic requesting port 80 (the default HTTP “web” port).
Close a Port in Windows 7’s Firewall
- Open Control Panel from the Start menu.
- Select Windows Firewall.
Note: If Windows Firewall is not available, change View by to Large icons at the top right of the Control Panel window.
- Select Advanced settings in the left column of the Windows Firewall window.
- Select Inbound Rules in the left column of the Windows Firewall with Advanced Security window.
Note: You can prevent outbound traffic by selecting Outbound Rules.
- Select New Rule in the right column.
- Select Port in the New Inbound Rule Wizard and then click Next.
- Select which protocol this rule will apply to (TCP or UDP), select Specific local ports, type a port number (80), port numbers (80,81), or a range of port numbers (5000-5010) and then click Next.
- Select Block the connection and then click Next.
- Select when this rule applies (check all of them for the port to always stay closed) and then click Next.
- Give this rule a name and then click Finish to add the new rule.
The port is now closed.
Still need help? Ask your computer question now.