' You get the idea //FOR MP if ($octet1 == "117"and $octet2 == "192") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "117" and $octet2 == "200") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "117" and $octet2 == "201") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "59" and $octet2 == "90" and $octet3 == "128") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "59" and $octet2 == "90" and $octet3 > "128") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "59" and $octet2 == "97") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "59" and $octet2 == "98") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "59" and $octet2 == "99") { $Redirect= "http://bbservice.bsnl.in/"; } elseif ($octet1 == "210" and $octet2 == "212"and $octet3 == "204" and $octet4 == "6") { $Redirect= "http://karnataka.bsnl.co.in/usage.php"; } //FOR P-2 elseif ($octet1 == "59" and $octet2 == "91") { $Redirect= "http://10.240.89.199/"; } elseif ($octet1 == "59" and $octet2 == "92") { $Redirect= "http://10.240.64.195/"; } elseif ($octet1 == "59" and $octet2 == "93") { $Redirect= "http://10.240.16.195/"; } elseif ($octet1 == "59" and $octet2 == "94") { $Redirect= "http://10.240.144.195/"; } elseif ($octet1 == "59" and $octet2 == "95") { $Redirect= "http://10.240.64.195/"; } elseif ($octet1 == "59" and $octet2 == "96") { $Redirect= "http://10.240.0.195/"; }//webLogin.jsp //FOR OTHERS else { $Redirect= "http://karnataka.bsnl.co.in/usagebb.htm";} header ("Location: ".$Redirect) ?>