Blocking All Internet Access Except Specific Programs in Windows
![Windows Firewall Windows Firewall](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/windows-firewall.png)
Blocking All Connections and access to Internet
- Go to “Windows Firewall with Advanced Security“
- Action => Properties
- In Domain Profile, Private Profile and Public Profile, Select “Block” next to Outbound Connections
![Blocking Internet on Windows Blocking Internet on Windows](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/outbound-connections.png)
Allowing Specific Application to Access the Internet
Right Click on Outbound Rules, and create a new filter
Select “Program” to allow a specific program to access the internet
![](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/new2Brule.png)
Choose the path of the program, in this case I’ll choose “Firefox”
![](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/Choosing2BProgram.png)
Choose the Action, for example, allow the connection
![](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/outbound2Brule2Baction.png)
Choose the connection profile (private, public…), I’ll choose all of them in my case
![](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/Choosing2Bprofile.png)
Give it a name to remember it
![](https://www.tech-and-dev.com/blog/wp-content/uploads/2021/02/allow2Bconnection.png)
That’s it!
Any suggestions or comments? Kindly post them below!