I'm trying to use the strstr function to find IP ranges and block them.
For some reason, I cannot get the strstr function to recognize the string. I have the following code
$bad_ip = "12.235.234.180";
$result = strstr($bad_ip, '12.' or '61' or '203' or '210' or '211' or '218' or '219');
print $result;
This code does not print anything for $results
Thanks
Jeff