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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:13:54
Original
1116 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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template