Checking & banning BitTorrent leech peers via Web API, working for μTorrent 3.
Project description
Ban-Peers (English/中文)
Ban-Peers is checking & banning BitTorrent leech peers via Web API, working for μTorrent 3. The main banned are XunLei, Baidu, QQDownload, Offline download servers, other infamous leech clients, and BT players, fake clients, who reported fake progress, the fact in serious leech.
Execute checking per 10 seconds, the banned time can be specified by the start-up parameters, default is 12 hours. In some cases,only banned for 1 hour if the torrent is seeding. At the same time, this script will not broke the existing IP ranges (non-single IP) in ipfilter, they will be stored as-is.
Please use this script in local network, μTorrent Web API does not support HTTPS connections, it is not safe.
A gift to the users of μTorrent 3 classic desktop free version, it wrote in Chinese, you can read via a translator. e.g. translate.google.com
Installation
pip3 install ban-peers
Or download and Install from source code
python setup.py install
Compatibility
- Python >= 3.6
Usage
$ ban_peers -h
Welcome using Ban-Peers 0.1.7
Usage:
ban_peers [-H IP|DOMAIN] [-p PORT] [-a USERNAME:PASSWORD]
[-e HOURS] [-f FORMAT] [-C] [-X] [-P] [-L] [-R] [-h] [-v]
[IPFILTER-PATH]
Checking & banning BitTorrent leech peers via Web API, working for uTorrent 3.
Positional Arguments:
IPFILTER-PATH Path of ipfilter dir/file, wait input if empty.
IMPORTANT NOTICE: must be the uTorrent setting path!
Optional Arguments:
-H IP|DOMAIN, --host IP|DOMAIN
WebUI host, default 127.0.0.1
-p PORT, --port PORT
WebUI port, default 8080
-a USERNAME:PASSWORD, --authorization USERNAME:PASSWORD
WebUI authorization, wait input if required
-e HOURS, --expire HOURS
Ban expire time for peers, default 12 HOURS
-f FORMAT, --log-header FORMAT
Format of log header, default %H:%M:%S
-C, --resolve-country
Set uTorrent to resolved peer's country code at start-up
-X, --no-xunlei-reprieve
Banned XunLei directly, no more checking
-P, --no-fake-progress-check
Don't checking fake progress
-L, --no-serious-leech-check
Don't checking serious leech
-R, --private-check
Enable checking for private seeds
-h, --help Show this help message and exit
-v, --version Show version and exit
$ ban_peers ~/utorrent -p 12345 -a username:password
Welcome using Ban-Peers 0.1.7
19:44:35 Set uTorrent setting 'bt.use_rangeblock' to False _**Won't restore after quit**_
19:44:35 uTorrent auto-banning script start running
Choose your operation: (Q)uit, (S)top, (R)estart, (P)ause/Proceed
or
$ ban-peers
Welcome using Ban-Peers 0.1.7
Please input uTorrent setting folder path or ipfilter file path:
~/utorrent
Please input WebUI username: username
Please input WebUI password: password _**No cover**_
19:44:35 Set uTorrent setting 'bt.use_rangeblock' to False _**Won't restore after quit**_
19:44:35 uTorrent auto-banning script start running
Choose your operation: (Q)uit, (S)top, (R)estart, (P)ause/Proceed
- Quit: exit the script.
- Stop: same as Quit if run script direct, or stop checking.
- Restart: reload ipfilter, it is useful when manually modify ipfilter.
- Pause: pause checking, it is useful when manually modify ipfilter.
- Proceed: just proceed checking.
Related projects
-
μTorrent
https://github.com/ShenHongFei/utorrent-block-xunlei
https://github.com/iHamsterball/utorrent_block_thunder -
qBittorrent
https://github.com/c0re100/qBittorrent-Enhanced-Edition
https://github.com/originqtum/banned-xunlei-for-qbittorrent
https://github.com/jinliming2/qbittorrent-ban-xunlei
https://github.com/Od1gree/btDownloadManager
https://github.com/outline941/qb-ban-xunlei
Thanks
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Ban_Peers-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450374b7068414b085e6d1f0de2f6ec1de2ad6c79017e83f9b6483eae94766e1 |
|
MD5 | a04cfa20085770159a7a50f9de12714e |
|
BLAKE2b-256 | 45b10ecec358326ea2ef120e4922329dfde47c5660de5420073623e379fd5bda |