简体   繁体   中英

Not allow any other application to open except a browser

I am presently working on website (Java EE). One of the requirements is to not let the client to open anything else other than the browser. After a lot of search I got the following results :

  1. Change the policy of the OS.
  2. Write some batch/c/c++ program which will intercept all the keyboard and mouse events not letting the user open anything else.

PS : It should work on windows and IE 7 or above only. The other OS and browsers need not be considered. This software is made only for intranet, so I already have control on the client machines if I have to run something.

My question is .. is there anything else I can do which will reduce the work needed on the client side or on the program which I have to write??

您可以将IE设置为Shell进程(注册表项)而不是explorer.exe,然后在信息亭模式下运行IE,然后通过策略禁用任务管理器(以防止新进程)。

This is very OS specific I'd say. Windows, I believe, has APIs related to finding open windows. You could find all open windows and close them. In your application's main loop you can detect if any windows are open then close them.

Perhaps mac and ubuntu have something similar.

This might be a good place to start looking: http://msdn.microsoft.com/en-us/library/ms633497%28VS.85%29.aspx

I have no idea how to use it though.

You'll need something more powerful than javascript to communicate with your application that is monitoring the user's desktop. You may want to look at connecting JS to Silverlight then having the client download something upon opening the browser that is also similar to silverlight or .net. Then you can have them all communicate possibly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM