Home  >  Article  >  Backend Development  >  PHP做的WEBSERVICE怎么防止他人调用

PHP做的WEBSERVICE怎么防止他人调用

WBOY
WBOYOriginal
2016-06-13 11:13:09834browse

PHP做的WEBSERVICE如何防止他人调用?
如果别人知道你WEBSERVICE的地址,不也可以调用这些方法吗?请问有没有什么办法限制,或者是否有什么验证方式可供使用?


------解决方案--------------------
1、先约定一定的加法机制,对发过来的请求解密验证

2、用soap ,我记得可以加用户权证的,只有合法的用户才能调用
Statement:
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