From http://perishablepress.com/php-redirect-multiple-ip-addresses/