= $low && $check <= $high) return 1; else return 0; } /* Check address against each range */ foreach($banned_address_ranges as $range) { if ( check_cidr($_SERVER['REMOTE_ADDR'], $range) ) { echo "
"; echo "Access to this part of the web site has been blocked to customers of TalkTalk, and subsidiaries.
"; echo "TalkTalk are presently operating an illegal Chinese supplied communications surveillance system, which is currently monitoring every web request you make, and every web page you read.
"; echo "Consequently, for security reasons, this site is no longer accessible to you.
"; echo "You did not opt in to this surveillance, and whats more you cannot opt out either.
"; echo "For more information, please read this article.
"; echo "For help moving to a trustworthy internet service provider, please read the instructions here.
"; echo "To restore full access to this site, please move to a surveillance free communication company.
"; echo "For more information, please visit NoDPI.org.
"; echo "Goodbye, and once again, sorry.
"; echo ""; ob_end_flush(); exit; } } ?>