Windows Firewall: Block everything except one app on port 80

9

5

I'd like to block all outgoing port 80 activity except for one particular application.

Why? I want to test a piece of software to see if it will fall back to a proxy if a direct connection to the web is not available. I need to allow my proxy to connect, but nothing else.

I would have thought this would be a comon scenario, but I'm not able to find anything that gives a hint as to how to accomplish this.

BTW, this is on Windows 7

His Royal Redness

Posted 2012-03-20T06:58:17.453

Reputation: 313

OK, figured it out. You need to open the Windows Firewall properties, and set Outbound connections to block (it's set to Allow by default). Then, you add an Allow rule for your proxy app.

It did what I wanted for testing purposes, but obviously not something to change long term. – His Royal Redness – 2012-03-20T07:27:35.717

Answers

7

You can accomplish this by using the Advanced Security settings panel.

Open up the Windows Firewall Control Panel item and click "Advanced settings":

Control Panel

(You can also open Advanced Security by opening the Start Menu and typing "Windows Firewall with Advanced Security".)

Click on Windows Firewall Properties:

Windows Firewall with Advanced Security

Select "Block" from the "Outbound Connections" menu:

Properties box

Click OK, then create a new outbound rule. Click on Outbound Rules (in the left sidebar), and then click on "New Rule":

outbound rules

nc4pk

Posted 2012-03-20T06:58:17.453

Reputation: 8 261

Similar to http://superuser.com/a/268909/109468

– ferventcoder – 2015-09-23T07:29:30.810