mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Improved BitTorrent clients ban functionality (#1657)
* Minor improvements
* Update config.php
* Update config.php
* Update config.php
* Update config.php
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update announce.php
* Update main.php
* Update CronHelper.php
* Updated
* Update CHANGELOG.md
* Update announce.php
* Revert "Update announce.php"
This reverts commit 595784acd6
.
* Update announce.php
* Update announce.php
This commit is contained in:
parent
8e43fde956
commit
04e1adf4ba
4 changed files with 25 additions and 5 deletions
|
@ -100,12 +100,15 @@ $bb_cfg['verify_reported_ip'] = true; // Verify IP reported by client against $_
|
|||
$bb_cfg['allow_internal_ip'] = false; // Allow internal IP (10.xx.. etc.)
|
||||
$bb_cfg['client_ban'] = [
|
||||
'enabled' => false,
|
||||
// Clients to be blocked, for example, peer id '-UT' will block all uTorrent clients, '-UT2' will block builds starting with 2 (default: false)
|
||||
'only_allow_mode' => false,
|
||||
// Clients to be blocked / allowed (in "only allow mode"), for example, peer id '-UT' will block all uTorrent clients, '-UT2' will block builds starting with 2 (default: false)
|
||||
// The second argument is being shown in the torrent client as a failure message
|
||||
// Handy client list: https://github.com/transmission/transmission/blob/f85c3b6f8db95d5363f6ec38eee603f146c6adb6/libtransmission/clients.cc#L504
|
||||
'clients' => [
|
||||
// 'client_id' => 'Ban reason (can be empty)'
|
||||
'-UT' => 'uTorrent — NOT ad-free and open-source',
|
||||
'-MG' => 'Mostly leeching client',
|
||||
'-ZO' => '',
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue