---
name: "Apache2::ModBT::LeechNuker"
section: "3pm"
platform: "linux"
package: "libapache2-modbt-perl"
version: "0.0.19+p4.2296-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/Apache2::ModBT::LeechNuker"
---

# Apache2::ModBT::LeechNuker(3pm)

mod\_perl handler to shun leeches on a mod\_bt BitTorrent Tracker

## NAME

Apache2::ModBT::LeechNuker - mod\_perl handler to shun leeches on a mod\_bt BitTorrent Tracker

## SYNOPSIS

```
        PerlModule Apache2::ModBT::LeechNuker
```

```
        <Location "/announce">
                <IfModule mod_perl.c>
                        PerlFixupHandler        Apache::ModBT::LeechNuker
                        PerlSetVar                      MinLeechTime            3600
                </IfModule>
        </Location>
```

## DESCRIPTION

The Apache::ModBT::LeechNuker module is a basic example on how to manipulate the operations of a mod\_bt BitTorrent tracker from mod\_perl.

When run on an "/announce" request, this module will look up the peer making the request in the tracker's database. If the peer has not uploaded anything, and has been connected to the tracker for a certain amount of time (the default is 3600 seconds or 1 hour), has been downloading, and there are other peers that need his or her help, the peer's "Shunned" flag is set in the database.

A "Shunned" peer is never given any other peers when it makes /announce requests, and is never served to other peers, effectively blocking the peer from the network

## SEE ALSO

Apache2::ModBT, Net::BitTorrent::LibBTT, \<http://www.crackerjack.net/mod\_bt/\>, \<http://perl.apache.org/\>
