简体   繁体   English

使用 C# 阻止应用程序

[英]Blocking applications using C#

I am working on a web application which will allow users to take exam online.我正在开发一个 web 应用程序,该应用程序将允许用户在线参加考试。 When the user clicks on take test I need to block the calculator app.当用户点击参加考试时,我需要阻止计算器应用程序。 Is there a way to do that?有没有办法做到这一点?

I am using asp.net,c#,visual studio 2008我正在使用 asp.net,c#,visual studio 2008

Absolutely not.绝对不。 Your code is executing on your server, and the calculator is running on their PC.您的代码在您的服务器上执行,计算器在他们的 PC 上运行。 You can send JavaScript, Flash, Silverlight, etc. that is executed, but they run in a sandbox - can't affect anything outside the browser runtime.您可以发送执行的 JavaScript、Flash、Silverlight 等,但它们在沙箱中运行 - 不会影响浏览器运行时之外的任何内容。 You wouldn't like it very much if websites could manipulate your PC would you?如果网站可以操纵您的 PC,您会不会非常喜欢它,对吗?

This is not possible unless you force the user to install custom software on their computer.除非您强制用户在他们的计算机上安装自定义软件,否则这是不可能的。 And if we go into that, this has nothing to do with the web anymore.如果我们将 go 纳入其中,这与 web 无关。

And to be honest, if you don't have any control over the environment the user is in... what's preventing them from opening whatever software you're trying to block on a laptop sitting next to the computer running the exam?老实说,如果您无法控制用户所处的环境……是什么阻止他们在运行考试的计算机旁边的笔记本电脑上打开您试图阻止的任何软件?

if you are in a Web application, you cant control your client machine .如果您在 Web 应用程序中,则无法控制您的client machine Only you can control your browser by using javascript or silverlight etc.只有您可以使用 javascript 或 silverlight 等来控制您的浏览器。

You have to install some extra windows application to protect that您必须安装一些额外的 windows 应用程序来保护它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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