Not a PHP expert. I have a snippet here that redirects based on one IP. Assuming that I have a multiple IP list, what would be the best way to rewrite this to accommodate multiple IPs (perhaps in one list). Thanks for your help!
<?php
// Redirect if IP matches
if (strpos($_SERVER['REMOTE_ADDR'], "192.168.1.")!==FALSE)
{
header ('Location: redirect.php');
}
?>
EDIT: Let me rephrase, since I'm getting downvotes. Sure, array is great, but I still want to use strpos for ranges.