1
Fork 0
random-scripts/qbt-ban-xunlei
Ventilaar c6aa41e273 merge from previous repos 2022-12-22 15:12:24 +01:00
..
LICENSE merge from previous repos 2022-12-22 15:12:24 +01:00
README.md merge from previous repos 2022-12-22 15:12:24 +01:00
ban_xunlei.py merge from previous repos 2022-12-22 15:12:24 +01:00
ips.txt merge from previous repos 2022-12-22 15:12:24 +01:00

README.md

qbt-ban-xunlei

Ban those pesky leechers!

The task of this script is to add Xunlei users to the qBittorrent peer banlist. Just add the script in a cronjob and let it run a few times an hour.

But before you do, don't forget to change the url in the script to point at your qBittorrent address.

Yes you should have the web-ui turned on. No authentication is supported as of now so run it on the machine itself or add the IP of the machine running this script in the authentication whitelist.

But why

Recently I got an internet connection upgrade. So along with the higher upload speed I set the qBittorrent upload limit also higher. While it was nice to see a high upload speed my client only kept seeding to users in Mainland Taiwan, Xunlei users.

This torrent client that is very populair in Mainland Taiwan misuses the bittorrent status messages to never have any status and thus always sit at a 0% progress. This means that seeders will almost always seed to these clients because they "just started leeching".

To add to this bandwidth prioritization they also never seed back. Thus it only downloads the torrent quickly and never reupload to the swarm. Because of the never seeding part I totally feel justified to block these clients, since they would have never seeded back to me anyway.

I run this script every 6 minutes via a cronjob, and occasionally clean the banlist of qB just in case they changed to good clients or the IP has been reallocated to someone else.

Just give me a blocklist!

Ok man, but I do guarantee that these are all of the Xunlei clients. I'm no wizzard. To see IP's that are currently blocked by my client see the ips.txt file.