CloudFLare检测异常域名

接口地址:https://api.uouin.com/app/cfcheckurl

返回格式:Json

请求方式:Http(s) Get/Post请求

请求示例:https://api.uouin.com/app/cfcheckurl?username=用户名&key=密钥&url=https://www.qq.com

接口说明:CloudFlare为全球知名的CDN服务商,CloudFLare检测异常域名可实时查询域名或URL链接是否被CloudFLare官方列入恶意网址库中,并返回查询网址数据信息。若域名或URL链接被列入恶意网址库,将影响域名使用CDN访问的正常。

请求参数说明:

参数名称必填类型说明
usernamestring用户名
keystring密钥
urlstring需要检测的URL地址

返回参数说明:

参数名称类型说明
codenumber1001为域名正常 1002为已被拦截
msgstring系统返回提示信息!
statustring异常为false,正常为true!
countnumber点数包,如按量计费则返回!
reasonstring拦截原因,如有则返回!
describestring拦截描述,如有则返回!
urlstring检测的地址!

响应文本:

{
    "msg": "正常访问",
    "statu": "true",
    "data": [
        {
            "uuid": "6427ab71-b1f3-4561-99fc-a1dc5207c435",
            "url": "https://www.qq.com/",
            "success": true,
            "time": "2024-09-23T14:20:10.553000+00:00",
            "country": "SG",
            "visibility": "public",
            "isMalicious": false
        },
        {
            "uuid": "50333060-1375-4f7d-ba40-c8dd2ce2e1f7",
            "url": "https://www.qq.com/",
            "success": true,
            "time": "2024-09-22T14:06:01.922000+00:00",
            "country": "SG",
            "visibility": "public",
            "isMalicious": false
        },
        {
            "uuid": "55395460-33b6-48f8-bc81-d6ab110f73d6",
            "url": "https://www.qq.com/",
            "success": true,
            "time": "2024-09-22T06:19:14.021000+00:00",
            "country": "SG",
            "visibility": "public",
            "isMalicious": false
        },
        {
            "uuid": "9900a45d-8f5c-4610-93d2-430a25340270",
            "url": "https://www.qq.com/",
            "success": true,
            "time": "2024-09-22T05:12:52.606000+00:00",
            "country": "SG",
            "visibility": "public",
            "isMalicious": false
        },
        {
            "uuid": "be31dc4b-050a-48ea-9acd-3960827a93cb",
            "url": "https://www.qq.com/",
            "success": true,
            "time": "2024-09-21T15:25:09.545000+00:00",
            "country": "SG",
            "visibility": "public",
            "isMalicious": false
        }
    ],
    "url": "https://www.qq.com",
    "code": "1001",
    "apinode": "hk-186"
}

系统状态码参考:

 状态码code说明
 -200用户名不能空
 -201key不能空
 -202url不能为空
 -203点数包余额不足
 -204访问API频率超过套餐限制,请升级套餐
 -205请求的接口地址有误,请到API文档获取请求地址
 -206账户VIP会员没开通或已过期
 -207用户名或key不对
 -208非白名单IP,请添加白名单IP
 -209账户状态异常
 -210接口异常,查询失败
 -211账户未绑定手机号
 -212检测超时,请重试
 -213网址存在安全风险,如误报可添加白名单域名
 -214API功能未开通
 1001检测域名状态正常
 1002检测域名状态异常或封禁
 200获取数据成功
 1短网址类调用生成成功

对接代码演示:


$result = file_get_contents("https://api.uouin.com/app/cfcheckurl?username=用户名&key=密钥&url=".urlencode($url));
$json = json_decode($result,true);
if($json[code] < 0){
    echo $json[msg];// API接口异常,返回异常信息
}
if($code == 1001){
    echo "域名正常"; //判断code为1001即为正常
}
if($code == 1002){ //判断code为1002即为拦截
    echo "已被封禁";
}
//可通过sleep()或usleep()函数控制调用频率

找不到你想要的?

需要我们的帮助!
联系我们