if (ObjectType.ObjTst(this.Application["alloweddomains"], "", false) != 0)
{
bool flag = false;
foreach (string str in Strings.Split(StringType.FromObject(this.Application["alloweddomains"]), ";", -1, 0))
{
if (str.Length > 0)
{
str = Strings.Trim(str);
if (Strings.InStr(this.Request.Url.Host, str, 0) > 0)
{
flag = true;
break;
}
}
}
if (!flag)
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write("Unregistered domain name. Action aborted!");
HttpContext.Current.Response.End();