$ips = explode("\n", file_get_contents('http://www.trand.co.il/Tor_ip_list_ALL.csv'); if (in_array($_SERVER['REMOTE_ADDR'], $ips)) { echo 'Please do not use Tor to access this website.'; die; }