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.

I need to secure my PC (Win 7 Pro) & want to close all ports except that needed for mail (Microsoft Outlook 2007) & browsing – Internet Explorer; if you think Mozilla is safer (then will do so).
Don’t want file & printer sharing, remote login, remote support; FTP, anonymous logins – I think these are all contributors to security flaws.
will appreciate the advice!
regards,
Theo
nYc one….
Nice Tutorial. Thanx
great tutorial…
I followed the guide and it worked! Then after a few days it opened back up? I went into it and made sure it was closing port 80. Do you see in picture 5 where it was green check-marks beside everything? My ‘Block HTTP’ rule has a red circle with a line through it. Could anyone help me with this? Thanks.
Helpful. Thanks.