none
Close port 80

    Question

  • Hi, how can I use cmd to close port 80 on my win7 home premium pc? I want to disable web-browsing at certain times of the day while keeping my IM program connected so that people can still call me.

    I have tried a program, iNetProtector, that does just that. However, right after installing the program the pc is soooooooooooooooooo slow, each click takes almost 5 mins to respond. I even suspected if it was a malware, the only thing I could do is to wait ages for the pc to restart and then enter safe mode to uninstall it.

    Thanks.

    Thursday, August 25, 2011 2:31 PM

Answers

  • You don't need the cmd prompt to disable port 80.

    To disable port 80, go to Windows Firewall with Advanced Security (just type it in the Start search box). On the left you'll see Outbound Rules, right-click on it and select New Rule...

    Then, select Port in rule type and hit Next. Select protocol TCP and type 80 in the Specific Remote Port box. Then, select Block the connection and hit Next. Select the network profile(s), give it a name (and remember it) and click on Finish.

    This new rule will be added to the list of Outbound Rules. In case you want to enable web browsing back again, find the rule by name, right-click it and hit Disable Rule. That's it. Enable or disable this rule as desired.

    Please revert back here in case of any queries. Hope it helps!


    Kunal D Mehta - a Windows Server Enthusiast.
    Thursday, August 25, 2011 4:12 PM
  • Hello,

    Hi, how can I use cmd to close port 80 on my win7 home premium pc? I want to disable web-browsing at certain times of the day while keeping my IM program connected so that people can still call me.

    configure your internal firewall to block it: http://technet.microsoft.com/en-us/library/cc875811.aspx

     


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Microsoft Student Partner 2010 / 2011
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows 7, Configuring
    Microsoft Certified IT Professional: Enterprise Administrator
    Microsoft Certified IT Professional: Server Administrator 

    Thursday, August 25, 2011 4:12 PM
  • I don't think we can do that using the built-in tools provided with Windows 7. Hope it helps!


    Kunal D Mehta - a Windows Server Enthusiast.
    Friday, August 26, 2011 6:07 PM

All replies

  • You don't need the cmd prompt to disable port 80.

    To disable port 80, go to Windows Firewall with Advanced Security (just type it in the Start search box). On the left you'll see Outbound Rules, right-click on it and select New Rule...

    Then, select Port in rule type and hit Next. Select protocol TCP and type 80 in the Specific Remote Port box. Then, select Block the connection and hit Next. Select the network profile(s), give it a name (and remember it) and click on Finish.

    This new rule will be added to the list of Outbound Rules. In case you want to enable web browsing back again, find the rule by name, right-click it and hit Disable Rule. That's it. Enable or disable this rule as desired.

    Please revert back here in case of any queries. Hope it helps!


    Kunal D Mehta - a Windows Server Enthusiast.
    Thursday, August 25, 2011 4:12 PM
  • Hello,

    Hi, how can I use cmd to close port 80 on my win7 home premium pc? I want to disable web-browsing at certain times of the day while keeping my IM program connected so that people can still call me.

    configure your internal firewall to block it: http://technet.microsoft.com/en-us/library/cc875811.aspx

     


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Microsoft Student Partner 2010 / 2011
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows 7, Configuring
    Microsoft Certified IT Professional: Enterprise Administrator
    Microsoft Certified IT Professional: Server Administrator 

    Thursday, August 25, 2011 4:12 PM
  • Hi, thanks for the replies. How can I schedule the firewall rule to take place automatically (eg from 9pm to 5am every day)?
    Friday, August 26, 2011 7:48 AM
  • I don't think we can do that using the built-in tools provided with Windows 7. Hope it helps!


    Kunal D Mehta - a Windows Server Enthusiast.
    Friday, August 26, 2011 6:07 PM