Sometime it is necessary to block internet access from a certain application due to the use of a crack or patch or a serial number that can be blacklisted if the program was updated. This tutorial will teach you how to block internet access by adding a rule to the host file
1- Open Notepad
2- Copy & paste the following into notepad
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access\command]
@="netsh advfirewall firewall add rule name=\"%1\" dir=out action=block program=\"%1\""
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access\command]
@="netsh advfirewall firewall delete rule name=\"%1\""
[HKEY_CLASSES_ROOT\exefile\shell]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access\command]
@="netsh advfirewall firewall add rule name=\"%1\" dir=out action=block program=\"%1\""
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access\command]
@="netsh advfirewall firewall delete rule name=\"%1\""
3- Save it as Install.reg
4- Open Notepad again
5- Copy & paste the following into notepad
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[-HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]
[-HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[-HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]
6- Save it as Uninstall.reg
7- Now you have 2 files Install.reg & Uninstall.reg
Install.reg
Is used to integrate 2 options into right-click context explorer menu, the 2 options are Allow Internet Access & Block Internet Access. Double-click on Install.reg then click Yes to integrate them.Uninstall.reg
Is used to uninstall the previously mentioned context explorer menu options. Double-click on Uninstall.reg then click Yes to remove integration.How To Use It:
From now on, when you need to block internet access from an application just right-click on it and choose Block Internet Access. To allow internet access right-click on the application and choose Allow Internet AccessNote: When you want to uninstall the integration from the context explorer menu make sure that you allowed internet access for all application if previously you blocked it.
If you are having any problem creating the 2 files download Install.reg Here and Uninstall.reg Here