- WAF功能
- 节点自动注册到后台
- 其它接口
- 接口更新日志
- AI接口
- 定制页面上传
- API完成情况
- UEBA参数文档
- 防火墙配置
- 节点、域名、缓存
- 接口认证
- 节点管理
- 缓存配置
- 防火墙配置
- IP黑/白名单
- URL黑/白名单
- 防CC
- 防盗链
- 精准访问控制【2024.06更新】
- 区域访问限制
- APP专用防CC策略
- 内容安全风控:关键字【2024.06更新】
- 内容安全风控:图片
- 安全访问控制
- WAF功能
- 新WAF功能
- 防篡改
- 批量配置接口
- http防护【2024.05更新】
- 动态防护【2024.06更新】
- 资源访问控制【2024.06更新】
- bot防护【2024.06更新】
- api防护【2024.06更新】
- url统计模块【2024.06更新】
- api基线管理
- httpStream
- 证书管理
- 统计数据
- 其它
- 健康检查
- AI接口
- 接口认证
- 测试包
- UEBA【2024.06更新】
- 【内部用】ip库管理【2024.06更新】
开启关闭
开发中
PUT
/firewall/IPBlock
通过type区分为黑名单(类型1)与白名单(类型0)两个开关。当前type 默认传0,仅使用type 为 0 的开关(代码中保留type 参数)。
IP/URL黑白名单共用同一个开关,即不管是开启IP黑白名单,还是URL黑白明代,开启两者均开启,关闭则均关闭。type 默认传0
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Accept
string
必需
默认值:
application/json
Body 参数application/json
domain_uuid
string
必需
active
boolean
开关
type
integer
黑白名单
示例
{
"domain_uuid": "string",
"active": true,
"type": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/firewall/IPBlock' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
domain_uuid
string
域名uuid
active
boolean
开关
type
integer
黑白名单
示例
{
"code": 0,
"message": "string",
"data": {
"domain_uuid": "string",
"active": true,
"type": 0
}
}
修改于 2023-06-07 17:01:05