8 foreach ($uas as $blocked_ua)
9 if (strpos ($_SERVER['HTTP_USER_AGENT'], $blocked_ua) !== false)
15 $hostname = gethostbyaddr ($_SERVER['REMOTE_ADDR']);
16 $isps = file ('include/isp_bans.txt');
17 foreach ($isps as $blocked_isp)
18 if (strpos ($hostname, $blocked_isp) !== false)
22 function check_email ($email)
24 $emails = file ('include/email_bans.txt');
25 foreach ($emails as $blocked_email)
26 if (strpos ($email, rtrim ($blocked_email)) !== false)
32 $isp = gethostbyaddr ($_SERVER['REMOTE_ADDR']);
33 if (strpos ($isp, 'ntli.net') ||
strpos ($isp, 'ntl.com')) // NTL is a retarded ISP
35 $ips = file ('compress.zlib://include/proxylist.txt.gz');
36 foreach ($ips as $blocked_ip)
37 if (strpos ($_SERVER['REMOTE_ADDR'], rtrim ($blocked_ip)) === 0)