I´m developing a system that consist in a program that runs in the desktop (Windows).
Each minute detects if the active program is a browser and in this case checks if the url of the active tab is in a "black list"
In this case I would like to close the current tab of the browser. What I´m doing now is killing the browser process, and that means that tabs with urls not in the black list were closed too.
For detecting the url of the active tab, I´m using the solution from How to get the url from Chrome using delphi
I´m using Delphi 7, but a solution in any language will be appreciate.