Home > Backend Development > PHP Tutorial > web api 如何设置只能让localhost程序调用呢?

web api 如何设置只能让localhost程序调用呢?

WBOY
Release: 2016-06-06 20:13:54
Original
1083 people have browsed it

我想用java写一个web api,然后让php调用,但想让这个web api只能localhost调用,怎么设置呢?

回复内容:

我想用java写一个web api,然后让php调用,但想让这个web api只能localhost调用,怎么设置呢?

<code>if linux:
    listen 127.0.0.1:xxxx</code>
Copy after login

设置一下ip地址应该就可以了

你使用的是什么webserver呢?

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