protected function checkRedirectUrl($url, $webServerName)
 {
     if (strpos($url, 'http://') === 0 || strpos($url, 'https://') === 0) {
         $parsedUrl = parse_url($url);
         $util = new IMUtil();
         if ($util->checkHost($parsedUrl['host'], $webServerName)) {
             return TRUE;
         }
     }
     return FALSE;
 }