如何从直接访问中保护JSON URL? [英] How To Protect JSON URL From Direct Acess ?

查看:162
本文介绍了如何从直接访问中保护JSON URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在从我的网站上检索一些JSON数据,例如http://weburl.com/abc/getdata.php。

I am retrieving some JSON data from my web url eg http://weburl.com/abc/getdata.php.

每件事情都很好但是我想要保护这个网址只能从应用程序访问这个网址,而不是直接浏览器。

Every thing works fine but I want to protect the url that this url is only accessible form the app not from the direct browser.

我保护了文件夹和文件  with password但是当文件受到保护时,我如何在应用程序中访问weburl以及密码凭据。

I protected the folder and Files with Password but when file is protected how can I access the weburl along with password credentials in the App.

或者请告诉我任何其他保护Urls的程序。

Or Please tell me any other procedure to protect the Urls.

谢谢

Osama Usmani

Osama Usmani

推荐答案

您好,

欢迎来到开发通用Windows应用程序
论坛!

请阅读粘贴帖子,特别是  发布指南:主题行
标签
 &absp; Windows 10 SDK和工具的已知问题 ,
并且不要忘记在您的问题中添加标记。

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools , and don't forget add tag to your question.

要保护服务器上的数据,请使用验证和授权方法,或者您可以使用特定令牌获取数据。

For protecting data on the server use  Authentication And Authorization Methods, or you can use specific token for getting data.


这篇关于如何从直接访问中保护JSON URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆