Zend certified PHP/Magento developer

Is it possible to temporarily block internet connection to a specific program? preferably with a keyboard hotkey

I was wondering if there is any third-party application that would make it possible for me to temporarily sever internet connection to a specified application? My hope is to use a key bind for this action.

I thought my best option for this would be the standard windows firewall by creating a new rule in the outbound connections tab. However, the main issue is having to manually enable/disable the rule by going into the firewall window.

I’ve also tried this previous post but the application suggested still requires you to manually enable/disable.