Reputation: 3
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,
Upvotes: 0
Views: 824
Reputation: 11923
Unfortunately this is very difficult to do. In short, you can't do this with 100% assurance because once your code is in the client's hands you have no control over it. Check out this StackOverflow question: Security When Using REST API in an iPhone Application
You may also find some value in this StackOverflow question as well: https://stackoverflow.com/questions/15390354/api-key-alternative/15390892#15390892
Upvotes: 1