Home > Backend Development > PHP Tutorial > 如何防止外人调用api

如何防止外人调用api

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:34:04
Original
1706 people have browsed it

怎么防止外人调用api?
小弟问个问题
如果网站的操作都是通过一个api实现的
比如
php有一个控制页面,www.control.php?action=1$addlist="adfs".....
当然是post方法,举例。

从主页ajax 调用post到这个页面

怎么防止别人通过工具提交页面到我的api,只允许我的手机app提交?

谢谢大神们指点

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template