简体   繁体   English

进行申请,使其成为唯一可以连接到我的WebAPI的应用程序

[英]Making an appliction so it is the only application that can connect to my WebAPI

How is it possible to create an Application to interact with my WebAPI . 如何创建与我的WebAPI交互的Application The app will send some info to my website( WebAPI ) , and then I will update my database with this info, but the problem is how to secure it, so only my app that can interact with my website? 该应用程序会将一些信息发送到我的网站( WebAPI ),然后用该信息更新数据库,但是问题是如何保护它,因此只有我的应用程序可以与我的网站进行交互?

the application designed to be deployed to many computers. 该应用程序旨在部署到许多计算机。 and the users can use the application anonymously. 用户可以匿名使用该应用程序。 for an example the lightshot app 例如lightshot应用

You can't limit access to a web site (or any IP port) to just one app. 您不能将对网站(或任何IP端口)的访问限制为仅一个应用程序。

Validate requests on server and possibly only allow access for authenticated users - that should be enough for most cases (except payed games). 验证服务器上的请求,可能仅允许经过身份验证的用户访问-在大多数情况下(付费游戏除外)就足够了。

You can make it harder to replay/re-create communication protocol: 您可以使重播/重新创建通信协议变得更加困难:

  • require client certificate for HTTPS to connect 需要HTTPS的客户端证书才能连接
  • frequently change code for client and protocol itself 经常更改客户端和协议本身的代码
  • only allow authenticated users 只允许经过身份验证的用户
  • rate-limit requests from same user to make it harder to revere engineer the protocol... 来自同一用户的速率限制请求,使其更难对协议进行工程​​设计...

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

相关问题 保护MVC4 c#webapi,以便只有我的应用才能访问它 - Secure MVC4 c# webapi so that only my app can access it 如何通过只能使用我的应用程序打开文件来锁定文件? - How can i lock a file, by making that it can only open using my application? 为什么我的WebApi客户端只能发出一个GET请求? - Why can my WebApi client make only a single GET request? 使用identityserver将我的webapi与解析服务器连接起来 - connect my webapi with parse server using identityserver 无法使用 webapi 连接到 mysql 数据库 - can't connect to mysql database with webapi WCF服务-如何保护以便只有我的客户才能使用它? - WCF Service - how to protect so only my clients can use it? 如何通过现有的WebAPI验证我的MVC5应用程序? - How can I authenticate my MVC5 application through an existing WebAPI? 使我的 MVC Async controller 方法异步,以便它们可以同时处理 - Making my MVC Async controller methods asynchronous so they can process at the same time 将我的360连接到应用程序 - Connect my 360 to an application 如何将应用程序连接到另一台计算机上的SQL Server? - How can I connect my application to a SQL Server that is on another computer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM