How restrict access to the PHP script Only from my app and site

I have two PHP handler files for (1) web site abc.com and (2) Cordova App com.abc.app … well how restrict access to the PHP script Only from my app and site … and Not from other apps or Web services,…?

You could add a custom http header in your client request inside your app with a challenge code. Your script detects the header and verifies the challenge. If the verification is passed, you execute the script, otherwise you return a 403 Forbidden.

Can you provide a jQuery sample client code rwquest… and a server approve code php of this request?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.