Modify blockList to file (#116)

This commit is contained in:
IAALAI 2024-08-30 19:21:25 +08:00 committed by GitHub
parent b37446e63e
commit 47952ee543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 45 additions and 23 deletions

View File

@ -84,7 +84,7 @@ jobs:
md5sum: false
sha256sum: false
binary_name: 'qBittorrent-ClientBlocker'
extra_files: 'lang/ LICENSE *.md config.json'
extra_files: 'lang/ LICENSE *.md *.json '
- name: 'Upload GitHub Artifact (Nightly)'
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'release' }}

6
blockBackList.json Normal file
View File

@ -0,0 +1,6 @@
[
"^-UW\\w{4}-", // uTorrent Web.
"^-SP(([0-2]\\d{3})|(3[0-5]\\d{2}))-",
"StellarPlayer", // .
"dandanplay" // Play.
]

25
blockList.json Normal file
View File

@ -0,0 +1,25 @@
[
"Gopeed dev",
"Rain 0.0.0",
"Taipei-Torrent dev",
"Xunlei",
"^-(SD|XF|QD|BN|DL)",
"^-DT",
"^-GT0002",
"^-HP",
"^-RN",
"^-XL",
"^-XM",
"anacrolix[ /]torrent v?([0-1]\\\\.(([0-9]|[0-4][0-9]|[0-5][0-2])\\\\.[0-9]+|(53\\\\.[0-2]( |$)))|unknown)",
"cacao_torrent",
"dt[ /]torrent",
"go[ \\\\.]torrent",
"gobind",
"hp[ /]torrent",
"ljyun.cn",
"offline-download",
"qBittorrent[ /]3\\\\.3\\\\.15",
"trafficConsume",
"xm[ /]torrent",
"ޭ__"
]

View File

@ -12,32 +12,23 @@
"clientPassword": "",
"useBasicAuth": false,
"skipCertVerification": false,
"blockList": [
"^-(SD|XF|QD|BN|DL)",
"^-XL", "Xunlei", "cacao_torrent",
"anacrolix[ /]torrent v?([0-1]\\.(([0-9]|[0-4][0-9]|[0-5][0-2])\\.[0-9]+|(53\\.[0-2]( |$)))|unknown)",
"^-DT", "dt[ /]torrent", "^-HP", "hp[ /]torrent", "^-XM", "xm[ /]torrent",
"trafficConsume", "\u07ad__",
"^-GT0002", "go[ \\.]torrent",
"^-RN", "Rain 0.0.0",
"Taipei-Torrent dev", "Gopeed dev",
"qBittorrent[ /]3\\.3\\.15",
"gobind", "offline-download",
"ljyun.cn",
],
"_blockList": [
// blockList.
"^-UW\\w{4}-", // uTorrent Web.
"^-SP(([0-2]\\d{3})|(3[0-5]\\d{2}))-", "StellarPlayer", // .
"dandanplay" // Play.
],
"blockListURL": [],
"blockListFile": [],
"blockListFile": [
"blockList.json",
// "blockBackList.json",
],
"blockListURL": [
"https://bta.iaalai.cn/qBittorrent-ClientBlocker/blockList.json",
"https://cdn.jsdelivr.net/gh/Simple-Tracker/qBittorrent-ClientBlocker@dev/blockList.json"
],
"portBlockList": [],
"ipBlockList": [],
"ipBlockList": [
"customIpBlock.txt",
"ipBlockList.txt"
],
"ipBlockListURL": [
"https://bta.iaalai.cn/BTN-Collected-Rules/combine/all.txt",
"https://cdn.jsdelivr.net/gh/PBH-BTN/BTN-Collected-Rules@main/combine/all.txt",
"https://bta.iaalai.cn/BTN-Collected-Rules/qBittorrent-ClientBlocker/blockIP.txt",
"https://cdn.jsdelivr.net/gh/Simple-Tracker/qBittorrent-ClientBlocker@dev/blockIP.txt"
],
"ipBlockListFile": []