closebrowsers will prevent browsers from running. It is a background program that will detect if web browsers are running and issue a windows force close command to them. It is a portable program so does not need installing either.
closebrowsers will close web browsers if they are opened. You can actually block any program with this. Just add the name of the program you want to block in the 'blocklist.txt'. Any attempts to run these programs will be recorded in a log file with the time and date it was detected running. After testing with different versions of Windows, I've added a few more commands to the blocklist to deal with quitting Microsoft Edge. I've also made a few tweaks to make closebrowser more responsive, added a few extra tweaks to make sure it stays a background-only application, and lastly made some improvements resulting in reduced CPU usage overall.
(7.2MB) for Windows.
closebrowsers is free.
version 1.0 - November 2020. Original test release
Tested with Windows 10.
If you have any suggestions, please get in touch via email. Many thanks.