微信域名安全拦截检测
402586
领酷API接口大全
接口地址
http://api.ilingku.com/int/v1/wxsafe
返回格式
json
请求方式
get/post
请求示例
http://api.ilingku.com/int/v1/wxsafe?domain=qq.com
参数说明
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
domain | 是 | string | 查询的域名(请不要带 http://) |
返回数据
{
"code": 1,
"msg": "域名正常",
"wording": "您要访问的网站信誉优秀,放心访问。"
}
示例代码
<?php
header("Content-Type:text/json;charset=UTF-8");
$domain= $_GET["domain"]?:‘qq.com’;
$result = file_get_contents("http://api.ilingku.com/int/v1/wxsafe?domain=".$domain);
$arr=json_decode($result,true);
if ($arr['code'] == 1) {
echo '域名正常';
} else {
echo $arr['msg'];
}
?>