↔P2Priv 8 entries · updated 2026-11-01

Ban IP ranges in qBittorrent with CIDR or start–end addresses

Use qBittorrent 5.3’s manual ban list to block IP ranges, check accepted syntax, undo a ban, and understand what filtering does not hide.

P2Priv Editorial Team · 3 min read

In qBittorrent 5.3.0, enter a CIDR subnet or a start–end range under Connection → Manually banned IP addresses. This blocks peer connections involving those addresses; it does not hide your IP from peers you still connect to.

The manual range-ban feature arrived in 5.3.0, released October 19, 2026, according to the official release notes. The steps below describe that version’s desktop interface.

Add a range to the manual ban list

  1. Open qBittorrent’s Options/Preferences (via Tools → Options where available), then select Connection.
  2. Find IP Filtering and click Manually banned IP addresses….
  3. Enter one address, subnet or range in the text field—for example, 192.0.2.0/24.
  4. Click Ban IP. Repeat for any additional entries.
  5. Click OK in the ban-list dialog to save the list, then close Options/Preferences.

The button still says Ban IP, even when you enter a range. Clicking it adds the entry to the dialog’s list; OK commits the changes, while Cancel discards them. These controls and behavior are defined in the 5.3.0 ban-list dialog.

You do not need a filter file for manual bans. The file-filter checkbox and path are a separate control: manual bans remain active even when file-based filtering is disabled, as shown in qBittorrent’s filter configuration code.

Accepted syntax

The 5.3.0 range parser accepts single addresses, CIDR notation and ranges separated by an ordinary hyphen (-).

Input type Example What it blocks
Single IPv4 address 192.0.2.42 One address
IPv4 CIDR subnet 192.0.2.0/24 192.0.2.0 through 192.0.2.255
Explicit IPv4 range 192.0.2.10 - 192.0.2.50 Both endpoints and every address between them
Single IPv6 address 2001:db8::42 One IPv6 address
IPv6 CIDR subnet 2001:db8::/64 That IPv6 subnet

These are illustrative addresses, not a recommended blocklist. Use the smallest range that serves your purpose: a /24 blocks 256 IPv4 addresses, not just the peer you noticed.

Do not use 192.0.2.*, append a port, or mix IPv4 and IPv6 endpoints. Write IPv4 octets without leading zeroes and put the lower address first. The desktop dialog validates entries and leaves Ban IP disabled when the input is invalid.

After saving, a CIDR entry may appear as a start–end range. That is expected: qBittorrent normalizes saved entries.

Check or undo the ban

Reopen Manually banned IP addresses… and confirm that the intended range is present. If the entry was not saved, check the version, syntax and whether you clicked OK in the ban-list dialog.

To undo it, select the saved entry, click Delete, then OK. If another range still covers that address—or an enabled filter file blocks it—removing one manual entry will not unblock it.

File-based alternative for older versions

If you are using an older version, upgrading is the simplest route to manual range entry. A file-based alternative already exists in 5.2.0: save a plain-text file named ipfilter.dat, with one range per line, such as:

192.0.2.10 - 192.0.2.50 , 000 , Example range

Enable file filtering under Connection → IP Filtering, select the file, and click Apply or OK to save those settings. Use Reload the filter after editing the file. The example uses the range format supported by the 5.2.0 DAT parser; do not assume the manual list’s CIDR syntax works in a .dat file.

What banning a range does—and does not—protect

The underlying libtorrent IP filter marks blocked addresses as ones the client should neither connect to nor accept incoming connections from. It is a connection-selection control, not an anonymity feature or a system-wide firewall.

Allowed direct peers still see the IP address used for your connection. A ban also cannot retract information already exposed to a peer. For that distinction—and how relays or VPNs change the visible address—see What Can Other Peers See About You?.