BotGuard爬虫管理
部署验证码校验
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
domain | String | 是 | 域名 |
edgebot_captcha_challenge | Captcha | 是 | 验证码校验 |
enable | Integer | 是 | 验证码开关。0-关闭 1-启用 |
captcha_expire_time | Integer | 是 | 验证码刷新频率。单位:秒 |
protection_type | Integer | 是 | 校验对象 ip-0 ;ip&ua-1 ;用户指纹-2 |
statistical_period | Integer | 是 | 异常处置周期。单位:秒 |
trigger_threshold | Integer | 是 | 失败次数 |
intercept_time | Integer | 是 | 拦截时间。单位:秒 |
accept_time | Integer | 是 | 验证频率。单位:秒 |
ca_rows | List | 是 | 校验路径 |
url | String | 是 | 校验 url |
scope | Integer | 否 | scope 固定值GET-3 |
参数名称 | 类型 | 描述 |
---|---|---|
code | String | 状态码,成功为“200”。 |
message | String | 返回信息,成功为”Success“。 |
data | Result | 返回数据 |
deployVersion | String | 部署版本号 |
estimatetime | String | 配置版本号 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
22994001 | CUSTOMER_NOT_EXIST | 200 | 客户不存在 |
22994000 | PARAM_ERROR_CODE | 200 | 查询参数错误 |
22995000 | INTERNAL_ERROR_CODE | 200 | 系统错误 |
#!/bin/bash username="example_username" apiKey="example_apiKey" date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url https://open.chinanetcenter.com/api/bot/domainConfig/deploy-captcha-challenge \ -X "POST" -u "$username:$password" -H "Date: $date" -H "Accept: application/json" -d { "domain": "test.com", "edgebot_captcha_challenge": { "trigger_threshold": "4", "ca_rows": [ { "scope": "3", "url": "/login1.php" }, { "scope": "3", "url": "/dddddd" }, { "scope": "3", "url": "/fffff" } ], "captcha_expire_time": "1", "enable": "1", "intercept_time": "33", "protection_type": "2", "statistical_period": "100", "accept_time": "300" } }
{ "message": "Success", "code": "200", "data": { "deployVersion": "202203241837473", "estimatetime": 0 } }