PeerBanHelper WebAPI
  1. BtnNetworkOnline
PeerBanHelper WebAPI
  • API
    • 鉴权
      • 登录
      • 注销登录态
    • 元数据
      • 请求基本清单数据
      • 初始化
    • 基本统计
      • 统计计数器
      • 规则计数器
    • 封禁
      • 获取封禁列表
      • 获取封禁历史记录信息
      • 获取封禁排名
      • 解除封禁
    • 下载器
      • 获取下载器列表
      • 获取下载器元数据
      • 获取下载器种子列表
      • 获取下载器指定种子的Peers列表
      • 创建下载器
      • 编辑下载器
      • 测试下载器配置
      • 删除下载器
    • 推送渠道
      • 获取推送渠道列表
      • 获取推送渠道元数据
      • 创建推送渠道
      • 编辑推送渠道
      • 测试通知渠道
      • 删除推送渠道
    • 通用
      • 通用状态查询
      • 创建堆转储文件
      • 检查指定模块是否启用
      • 更改全局设置
      • 获取全局设置
      • 配置文件重载
    • 功能模块
      • AutoRangeBan
        • 获取模块内存基本元数据
      • BtnNetworkOnline
        • 获取 BTN 模块状态
          GET
      • ClientNameBlackList
        • 获取模块内存基本元数据
      • IPBlackList
        • 获取模块内存基本元数据
        • 测试IP黑名单规则
        • 添加IP黑名单规则
        • 删除IP黑名单规则
        • 添加端口黑名单规则
        • 删除端口黑名单规则
        • 添加ASN黑名单
        • 删除ASN黑名单规则
        • 添加国家/地区代码黑名单规则
        • 添加城市黑名单规则
        • 删除国家/地区代码黑名单规则
        • 删除城市黑名单规则
      • MultiDialingBlocker
        • 获取模块内存基本元数据
      • PeerIdBlacklist
        • 获取模块内存基本元数据
      • ProgressCheatBlocker
        • 获取模块内存基本元数据
        • 获取状态
      • 订阅规则
        • 查询更新间隔
        • 修改更新间隔
        • 新增订阅规则
        • 查询订阅规则
        • 更新订阅规则
        • 保存订阅规则
        • 删除订阅规则
        • 启用禁用规则
        • 订阅规则列表
        • 更新全部订阅规则
        • 查询全部订阅规则更新日志
        • 查询指定订阅规则更新日志
      • Friend
        • 未命名接口
      • Expression Engine
        • 列出所有脚本
        • 获取指定脚本内容
        • 创建/保存脚本
        • 删除指定脚本
        • 是否可编辑给定脚本
      • Laboratory
        • 列出所有实验状态
        • 检查指定实验是否已启用
        • 设置指定实验的开关状态
        • 获取实验室模块配置状态
        • 设置实验室模块配置状态
      • PTRBlacklist
    • 警报
      • 获取警报列表
      • 标记警报为已读
      • 标记警报为全部已读
      • 删除指定警报
    • 程序日志
      • 连接到日志 WebSocket
      • 获取程序日志
    • 统计图表(基础)
      • 封禁趋势统计(迁移自/api/statistic/analysis/date)
      • 统计通用数值查询
      • 统计通用日期归类查询
    • PBH Plus
      • 创建或更新免费许可证
      • 验证捐赠密钥状态
      • 设置捐赠密钥
    • Torrent
      • 获取PBH种子列表
      • 获取指定种子基本信息
      • 获取指定种子的访问历史列表
      • 获取指定种子的封禁历史列表
    • 图表
      • GeoIP
      • 趋势
      • 流量
    • Peer
      • 查询指定 IP 的基本信息
      • 查询指定 IP 的访问历史列表
      • 查询指定 IP 的封禁记录
    • 工具
      • 批量更换 Tracker
  • 下载器兼容层
    • IP BanList 提供端点
    • P2P Guard Plain BanList 提供端点
    • DAT/Emule BanList 提供端点
  1. BtnNetworkOnline

获取 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:9897/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初始化
上一页
获取模块内存基本元数据
下一页
获取模块内存基本元数据
Built with