防止直接访问后端数据库

编程入门 行业动态 更新时间:2024-10-14 16:20:06
本文介绍了防止直接访问后端数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到了这个问题,我可以为我的应用程序/数据库创建一个安装程序,但是每个人都可以打开作为MS Access数据库的后端文件.我想要它,所以我们只能使用前端应用程序访问数据库.请帮我解决这个问题.

I have this problem, I can create a setup for my app/database but everyone can open the backend file which is an MS Access database. I want it so we can only access the database using the frontend app. Please help me solve this.

推荐答案

您肯定希望对文件进行密码保护.但是,有了访问权限,有很多免费的应用程序可以查询访问文件并提取密码. 唯一真正安全的方法是将数据库托管在某个地方的SQL Server实例上.您可以尝试加密文件,但是如果两个人试图同时访问文件,则必须弄清楚如何处理.您是否在应用程序运行的整个过程中解密文件,以允许其他人访问该文件,然后在用户关闭该应用程序后对其进行加密?如果用户从任务管理器"中杀死程序,而现在您拥有一个解密的文件,会发生什么? 关键是,如果您担心完全保护Access的安全,则不要使用Access. you would definitely want to password protect the file. Though, with access, there are plenty of free applications that can query the access file and pull out the password. The only real secure way to do this is to host the database on a SQL server instance somewhere. You can try encrypting the file, but then you''d have to figure out how you are going to handle if two people are going to try to access the file at the same time. Do you decrypt the file during the entire time the application is running to allow others to access the file and then encrypt it once the user closes the application? What happens if the user kills the program from the Task Manager and now you have a decrypted file? The point is that Access is not the product to use if you are worried about keeping it completely secure.

要么不使用MS Access,要么不使用密码保护文件 Either don''t use MS Access or password protect the file

另一种替代方法是将数据库置于Web服务之后.这样,除了通过Web服务之外,没有人可以直接访问数据库. Another alternative is to put your database behind a web-service. That way no one can directly access the database except through the web service.

更多推荐

防止直接访问后端数据库

本文发布于:2023-11-01 13:24:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:后端   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!