PHP Code:
// if user is a seeder, then only supply leechers.
$wantseeds = '';
if ($seeder == 'yes') $wantseeds = 'AND seeder = "no"';
$res = mysql_query("SELECT $fields FROM peers WHERE torrent = $torrentid $wantseeds $limit") or err( 'peers query failure' );
unset($wantseeds);
So this code stops a seeder supplying to himself but how could this code be tweaked to stop a leecher spoofing fake upload amounts IF they are the only leech?
So we have lets say 20 seeds and one leecher using ratiomaster how could the leecher be stopped or detected uploading spoofed data when that user is the only leecher?