php - 如何保护与 iOS 应用程序一起使用的 PHP 脚本
<p><p>如何保护与 iOS 应用程序一起使用的 PHP 脚本?</p>
<p>我有一个应用程序使用 Apache/PHP 服务器通过 POST 查询获取和设置一些值。任何人都可以通过其公共(public)地址在 Internet 上访问这些脚本。如何在脚本中确定查询来 self 的应用程序?因为如果有人知道我发的是什么post数据,他可以尝试查询,没有保护也没关系。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您应该使用 HTTPS 而不是 HTTP 连接。</p>
<p>网上有很多教程和东西,有些是波纹管</p>
<ol>
<li> <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/WorkingWithHTTPAndHTTPSRequests/WorkingWithHTTPAndHTTPSRequests.html" rel="noreferrer noopener nofollow">From apple</a> </li>
<li> <a href="http://www.techrepublic.com/blog/software-engineer/use-https-certificate-handling-to-protect-your-ios-app/" rel="noreferrer noopener nofollow">TechRepublic</a> </li>
<li> <a href="https://vanjakom.wordpress.com/2011/10/23/https-client-for-ios/" rel="noreferrer noopener nofollow">Vanjakom</a> </li>
<li> <a href="https://www.cocoanetics.com/2010/12/nsurlconnection-with-self-signed-certificates/" rel="noreferrer noopener nofollow">cocoanetics</a> </li>
</ol>
<p>为什么选择 SSL</p>
<ol>
<li> <a href="http://www.gtcomm.net/blog/the-importance-and-advantages-of-ssl-certificates/" rel="noreferrer noopener nofollow">http://www.gtcomm.net/blog/the-importance-and-advantages-of-ssl-certificates/</a> </li>
<li> <a href="http://www.inmotionhosting.com/support/website/ssl/what-is-ssl-and-why-is-it-important" rel="noreferrer noopener nofollow">http://www.inmotionhosting.com/support/website/ssl/what-is-ssl-and-why-is-it-important</a> </li>
<li> <a href="https://www.sslshopper.com/why-ssl-the-purpose-of-using-ssl-certificates.html" rel="noreferrer noopener nofollow">https://www.sslshopper.com/why-ssl-the-purpose-of-using-ssl-certificates.html</a> </li>
</ol>
<p>仔细阅读</p>
<p> <a href="https://security.stackexchange.com/questions/20803/how-does-ssl-tls-work" rel="noreferrer noopener nofollow">https://security.stackexchange.com/questions/20803/how-does-ssl-tls-work</a> </p></p>
<p style="font-size: 20px;">关于php - 如何保护与 iOS 应用程序一起使用的 PHP 脚本,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/31917899/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/31917899/
</a>
</p>
页:
[1]