How do I make BitTorrent automatically ban peers after a certain number of hashfails?
bt.ban_threshold determines the number of hashfails BitTorrent takes action against it. If bt.use_ban_ratio is disabled, BitTorrent will ban the peer immediately after it passes the ban threshold. Otherwise, BitTorrent will look at the ratio of good to bad pieces that the peer has sent, and if it finds that the ratio is lower than bt.ban_ratio, it will then ban the peer. If enough peers in the same range are banned, and bt.use_rangeblock is enabled, BitTorrent will ban the entire range, since there is a good probability that the entire range is poisoning BitTorrent swarms.