A small tool to help qBittorrent(qBittorrent -Enhanced-Edition is included) block Xunlei and other leeching BT clients.
Obtain information through WebUI of qBittorrent at regular intervals, and illegal peers can be identified using rules below:
- Client name is Leech client or Ancient client. For details, please see src/application.rs
- Total upload exceeds reported progress * torrent size + 10 MB
- Progress is regressive more than 10MB/TorrentSize
- Uploaded is regressive more than 10MB
- The banned IPs will reset after running continuously for more than one day.
- Enable WebUI of qBittorrent, and remember the port. (Authentication is not supported)
- Execute command:
qb_defender --port <port>
Tip
You can start qb_defender as a daemon, like Windows Service, etc.
Tip
Recommended to use in combination with BT_BAN.
You can check the banned IPs by visit "http://127.0.0.1:port/api/v2/app/preferences".