PeerBlock is a type of program known as an "IP Blocker". It monitors each connection your computer tries to make with another one - and each connection other computers try to make with you - and then compares the other computer's IP address against a list of "known bad" IP addresses to see whether it should let this connection go through or not.