为什么我需要添加 ip 地址才能访问 whmcs rest api?

Why i need to add my ipaddress to access the whmcs rest api?

我是 WHMCS API 的新手,我只想从我的 spring 启动模板调用 WHMCS API,我厌倦了将我的 IP 地址添加到 WHMCS->General设置->安全->API IP 访问限制。

根据 WHMCS 文档,这是一项要求:

API IP Access Restriction

Advanced. If using the WHMCS API from an off-server location, you must specify the IP address here, otherwise access will be denied.

您可以提交feature request您的疑虑,以便他们将来考虑替代方案。

编辑:

根据 WHMCS developer documentation,您可以使用 configuration.php 文件中的 api 访问密钥绕过 IP 地址限制:

$api_access_key = 'secret_key_passphrase_goes_here';

然后使用以下 URL 访问 api:

whmc-url.com/includes/api.php?action=xxxx&username=xxx&password=xxx&accesskey=secret_key_passphrase_goes_here