Read more: http://vidiame.com/php/how-to-block-multiple-ip-addresses-using-php#ixzz2AuYnCvTX