I’m loading a URL into my app’s UIWebView. Being a public URL, anyone could load it in any browser.
I’m wondering how I can best restrict access to this URL so that it’s only viewable in my app’s UIWebView and not any other browser?
Any ideas?
G
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible in practice. You can authenticate the user using a credential (username and password for instance). You cannot effectively authenticate the application. In order to authenticate the application, you would have to give it a credential, which you would have to put into the application. If the credential is in the application, then anyone who has access to the application can pull it out.
You need to redesign your server to not be vulnerable to uncontrolled traffic. You cannot control the traffic that comes to you. You can authenticate the person who comes to you. If you focus on authenticating the person, then you can be successful.