Home » Guides » Security »

Published on 07.06.09 by Brent Trahan

Block a Port in Windows 7’s Firewall

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

  1. Open Control Panel from the Start menu.
  2. Select Windows Firewall.

    block-port-windows-7-firewall-1

    Note: If Windows Firewall is not available, change View by to Large icons at the top right of the Control Panel window.

  3. Select Advanced settings in the left column of the Windows Firewall window.

    block-port-windows-7-firewall-2

  4. Select Inbound Rules in the left column of the Windows Firewall with Advanced Security window.

    block-port-windows-7-firewall-3

    Note: You can prevent outbound traffic by selecting Outbound Rules.

  5. Select New Rule in the right column.

    block-port-windows-7-firewall-4

  6. Select Port in the New Inbound Rule Wizard and then click Next.

    block-port-windows-7-firewall-5

  7. 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.

    block-port-windows-7-firewall-6

  8. Select Block the connection and then click Next.

    block-port-windows-7-firewall-7

  9. Select when this rule applies (check all of them for the port to always stay closed) and then click Next.

    block-port-windows-7-firewall-8

  10. Give this rule a name and then click Finish to add the new rule.

    block-port-windows-7-firewall-9

The port is now closed.

Still need help? Ask your computer question now.

Related Guides:

6 Responses to “Block a Port in Windows 7’s Firewall”

Subscribe to this guide's comments RSS feed.

  1. Theo says:

    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

  2. Ankit Nischal says:

    nYc one….

  3. [email protected] says:

    Nice Tutorial. Thanx

  4. newbie says:

    great tutorial…

  5. Trevor says:

    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.

  6. Aria says:

    Helpful. Thanks.

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2016 Brent Trahan. All rights reserved.