How to block a user from opening a new process, for example, Internet Explorer or Firefox?

I am looking for a way to block a user from opening new IE or Firefox windows. Is there any way to do this using C #. I look at system.diagnostics

+3
source share
2 answers

You can use the Windows service because it runs in the background and uses this code to complete the process (the code terminates the detected running Internet explorer process)

while (true)
        {
            StartLoop:
            try
            {
                foreach (System.Diagnostics.Process process in System.Diagnostics.Process.GetProcesses())
                {
                    if (process.ProcessName.ToUpperInvariant().Equals("IEXPLORE"))
                        process.Kill();
                }
            }
            catch
            {
                goto StartLoop;
            }
        }
+1
source

" ", . , .

, , , , .

0

Source: https://habr.com/ru/post/1727822/


All Articles