限制用户访问的程序
我已经考虑这个项目有一段时间了,但在如何着手实施方面遇到了困难。
我想要编写的是一个安全应用程序,它将暂时限制用户只能访问一两个选定的应用程序。
假设您将笔记本电脑带到一个有很多人使用它的地方。你只希望他们能够浏览互联网,而不是玩游戏/听 iTunes/浏览和弄乱你的文件等等。您选择一个程序(本例中为 Firefox),然后选择一个主密码。只能使用 Firefox,当用户尝试在 Firefox 之外单击时,会出现要求输入密码的提示。显然 CTRL+ALT+DEL 也需要受到限制。
我在 Java 和 Web 开发语言方面拥有丰富的经验,在 C 语言方面也有一些经验。但是,到目前为止我编写的唯一应用程序是家庭作业风格的桌面应用程序,这似乎更“真实世界”,我不知道如何 中
我的想法是让用户选择他想要可用的 .exe,并且每当启动新的 .exe 时都会检查它是否在可用列表 .exes(所以如果 Firefox.exe已启用,Steam.exe 将被强制关闭)但这似乎不是一个很好的方法。
你能给我一些指点吗?我认为这需要在 C/C++ 中完成,因为它超出了 Java 的能力。我已经尝试过一些研究,我并不是要求有人为我做这件事,只是一个一般的想法,如何正确地做到这一点,而不是以一种黑客的方式。针对 Windows 7 的编码。
I have had this project in mind for a while but have had trouble on how to go about doing it.
What I want to code is a security application that will temporarily restrict the access of the user to just one or two selected applications.
Let's say you're bringing your laptop to a situation in which many people will be using it. You only want them to be able to browse the internet and not play games / listen to itunes / look through and mess with your files and so on. You select a program, let's say Firefox in this case, and then a master password. Only Firefox can be used and when the user tries to click outside of Firefox a prompt will appear asking for the password. Obviously CTRL+ALT+DEL would need to be restricted for this too.
I have considerable experience with Java and web dev languages along with some experience in C. However, the only applications I have coded thus far are homework style desktop applications, this seems a lot more "real world" and I don't know how to begin or what language to code it in.
What I was thinking was having the user select the .exe that he wanted to be available, and any time a new .exe was launched it would be checked to see if it was on the available list of .exes (so if Firefox.exe was enabled, Steam.exe would be force closed) but this doesn't seem a very good way of doing it.
Could you give me some pointers? I think this will need doing in C/C++ as it will be beyond the capabilites of Java. I have tried some research and I'm not asking for someone to do this for me, just a general idea how to do this properly rather than in a hacky way. Coding for Windows 7.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有 Professional、Ultimate 或 Enterprise,请从组策略开始。 (开始->gpedit.msc)。那里有一些设置可以限制可以从资源管理器启动哪些程序并阻止打开任务管理器。但请注意,这对从其他程序启动程序没有帮助。
If you have a Professional, Ultimate, or Enterprise, start with Group Policy. (Start->gpedit.msc). There are settings there to restrict which programs can be launched from Explorer and prevent opening of Task Manager. Note that tis doesn;t help with launching programs from other programs, however.