09.05.2013, 10:29
Download a good admin system that has range bans and see how they do it. Basically you ban on the last X bytes of the IP address (most commonly the last 255 or 255 * 255 bytes, example 127.0.0.* / 127.0.*.*) and check if a player's IP is in that range.