- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下 载器
- 推送渠道
- 通用
- 功能模块
- AutoRangeBan
- BtnNetworkOnline
- ClientNameBlackList
- IPBlackList
- MultiDialingBlocker
- PeerIdBlacklist
- ProgressCheatBlocker
- 订阅规则
- Friend
- Expression Engine
- Laboratory
- PTRBlacklist
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
获取 BTN 模块状态
开发中
GET
/api/modules/btn
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9898/api/modules/btn'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object
必需
configResult
string
配置结果
abilities
array [object {6}]
BTN 能力
configUrl
string
配置 URL
configSuccess
boolean
是否成功获取配置文件
appId
string
AppID
appSecret
string
AppSecret (已脱敏)
示例
{
"success": true,
"message": null,
"data": {
"configResult": "Successfully configured",
"abilities": [
{
"displayName": "Submit Histories",
"name": "BtnAbilitySubmitHistory",
"lastMessage": "No any data reported to remote",
"description": "The “Submit Histories” ability allows the BTN server to periodically receive a snapshot of the Peers activity on the downloader tracked by PeerBanHelper and the last recorded activity data.This data helps the BTN server analyze malicious behavior on the network and dynamically generate anti-siphoning rules to block such malicious behavior. At the same time, this data also helps analyze whether there are in-the-wild exploits that take advantage of the PeerBanHelper's anti-siphoning feature to bypass the anti-siphoning mechanism.",
"lastUpdateAt": 1735558101184,
"lastSuccess": true
},
{
"displayName": "Reconfigure",
"name": "BtnAbilityReconfigure",
"lastMessage": "Ready",
"description": "The “reconfigure” ability allows the BTN server to notify the PeerBanHelper to contact the BTN server after a certain period of time to refresh the configuration file in use in order to obtain configuration changes from the remote server.",
"lastUpdateAt": 1735558101185,
"lastSuccess": true
},
{
"displayName": "Cloud Rules",
"name": "BtnAbilityRules",
"lastMessage": "Loaded from disk cache",
"description": "The “Cloud Rules” ability allows BTN servers to periodically provide PeerBanHelper with anti-vamping rules generated by remote servers as a supplement to local anti-vamping rules.\n\nRule version: **bcc14c49**, loaded **5100** rules:\n\n* IP: 5091\n* PeerID: 3\n* ClientName: 6\n* Ports: 0\n* Cloud Scripts: 0\n",
"lastUpdateAt": 1735558101626,
"lastSuccess": true
},
{
"displayName": "Submit Bans",
"name": "BtnAbilitySubmitBans",
"lastMessage": "No any data reported to remote",
"description": "The “Submit Bans” ability allows the BTN server to periodically receive PeerBanHelper's block list and a snapshot of the data at the time of the block.This data helps the BTN server analyze malicious behavior on the network and dynamically generate anti-siphoning rules to block such malicious behavior.",
"lastUpdateAt": 1735558101627,
"lastSuccess": true
}
],
"configUrl": "https://btn-prod.ghostchu-services.top/ping/config",
"configSuccess": true,
"appId": "02789d36-37cd-4fd3-bdb0-23470dc432f6",
"appSecret": "192f8*******"
}
}
🟠403未登录或Token错误
🟠429IP地址因频繁失败尝试而被封禁
🔴500内部服务器错误
🟠400通用参数错误
🔵303需要OOBE初始化
修改于 2024-10-23 08:26:05