How to make sure that a PHP page is called from my mobile app

105 Views Asked by At

I have an iOS/Android app and I want to convert some of its functionality to webview, as this will make minor changes easier as I will only have to update the web app, rather than updating both iOS and Android and wait the review process.

I already have a PHP-mysql server app and use various server-client communication, so I am adding to this server app the pages I will display in my mobile app webview. The drawback here, is that if I typed the url and passed the same parameters in any browser, it will work, and I do not like that.

How to make sure inside my PHP code, that the page is being called from inside my own app?

Thanks for advance.

0

There are 0 best solutions below