Skip to content

A python tool working for newer μTorrent (3.5.5) #19

@SeaHOH

Description

@SeaHOH

Hi, I will introduce a new anti-ads tool for you. It called Ban-Peers, wrote in python, it is also a anti-leech tool.

Install command: pip3 install ban-peers

If you don't care of anti-leech, run command like this, then press Ctrl c or q to close Ban-Peers.

ban_peers -p WEBUI_PORT -A -O ANY_EXISTING_FOLDER

I also wrote a guide (in Chinese) to modify the Windows uTorrent.exe file. If you interest this and can't read Chinese, please read it via a translator.

This is the help informations:

$ ban_peers -h
Welcome using Ban-Peers 0.6.1

Usage:
        ban_peers       [-H IP|DOMAIN] [-p PORT] [-a USERNAME:PASSWORD]
                        [-e HOURS] [-f FORMAT] [-C] [-X] [-P] [-L] [-R] [-U]
                        [-A] [-O] [-h] [-v] [IPFILTER-PATH]

Checking & banning BitTorrent leech peers via Web API, remove ads, working for
uTorrent.

Positional Arguments:
        IPFILTER-PATH   Path of ipfilter dir/file, wait input if empty.
                        IMPORTANT NOTICE: must be the uTorrent settings 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, see time.strftime, 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
        -U, --log-unknown
                        Logging unknown clients
        -A, --remove-ads
                        Remove ads via set Advanced Settings, only working for
                        localhost, and to fail in older uTorrent
        -O, --no-close-pairing
                        Don't turn off Web Pairing setting after remove ads
        -h, --help      Show this help message and exit
        -v, --version   Show version and exit

It's not only a anti-ads tool, to use it, you must pass the ipfilter argument, it is generally located in the path corresponding to the following cases.

Mac:
        ~/Library/Application Support/uTorrent
        or
        /Applications/uTorrent.app/Contents/MacOS
Unix utserver:
        use utserver argument "-settingspath" to specify settings folder path.
Win XP:
        C:\Documents and Settings\<username>\Application Data\uTorrent
Win 7 & above:
        C:\Users\<username>\AppData\Roaming\uTorrent
Portable mode:
        μTorrent installation folder path. To enable this mode, first put file
        settings.dat into it.
PortableApps:
        <PortableApps folder>\App\uTorrent
Android:
        I don't know any informations about it, welcome to help add those informations,
        even Android is unavailable.
Network File:
        run μTorrent at other machine, setup the settings folder as a network file path.
        e.g.
        NFS       mount –t nfs 192.168.1.20:/var/lib/utserver /mnt/utserver
                  /mnt/utserver
        SMB/CIFS  //machine1/share/uTorrent

I wish you will like it. Thanks for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions