M
M
Muslim Kabzon2020-11-13 12:57:12
Computer networks
Muslim Kabzon, 2020-11-13 12:57:12

How can I break the Internet connection for a specific application by pressing a button?

How can I break the Internet connection for a specific application by pressing a button? It is necessary to be able to do this with a hot key. What programs are there for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dmitriev, 2020-11-13
@SignFinder

1. Write a BAT file that will add deny firewall rules for the application, or the ports that the application uses.
2. Create a shortcut to it.
3. Add hotkeys to the shortcut.

A
Alexander Brolin, 2020-11-13
@brolin

Do you want to break the connection to the remote server in case of "show mask" arrival? )))
More reliable - put a button to reboot the router.
And so - not enough information. At least tell in what OS you want to implement it.
If in general - parse the net stat output for connections from the program and nail them if necessary. The same .bat/.sh script. But isn't it easier to just close the program with the same script?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question