PBH-BTN / PeerBanHelper

BT 反吸血工具 - 自动封禁不受欢迎、吸血和异常的 BT 客户端,并支持自定义规则。PeerId黑名单/UserAgent黑名单/IP CIDR/假进度/超量下载/进度回退/多播追猎/连锁封禁/伪装检测 支持 qBittorrent/Transmission/Deluge/BiglyBT/Vuze(Azureus)/BitComet
GNU General Public License v3.0
1.51k stars 36 forks source link

[Feature] 规则对外导出 #427

Closed Gaojianli closed 4 weeks ago

Gaojianli commented 4 weeks ago

描述

提供一个API端点,返回目前的封禁列表

场景

导出黑名单给外部防火墙使用,比如在防火墙中include 上述文件,实现在防火墙级别屏蔽

example:

url:/api/ban/export

return

MIME: text/plain-text

1.1.1.1
2.2.2.2

param

url:/api/ban/export?withPort=true

return

MIME: text/plain-text

1.1.1.1:123
2.2.2.2:456
Gaojianli commented 4 weeks ago

已经有了:https://apifox.com/apidoc/shared-b24f42a4-67f5-402a-900d-9fad3ae9917b/api-175098171