0

I am going to develop an iOS app for my web application so I will be working on an API Service that the iOS app will consume.

My question is : How can I make sure to protect the access to my API ?

My main concern is just that I don't want someone else to use my API in order to duplicate the content to another app or website.

Thanks in advance,

4

1 回答 1

1

不幸的是,这很难做到。简而言之,您不能 100% 保证这样做,因为一旦您的代码在客户手中,您就无法控制它。查看这个 StackOverflow 问题:在 iPhone 应用程序中使用 REST API 时的安全性

您也可以在这个 StackOverflow 问题中找到一些价值:https ://stackoverflow.com/questions/15390354/api-key-alternative/15390892#15390892

于 2013-03-20T20:11:07.910 回答