http://www.cnblogs.com/yagzh2000/archive/2013/06/09/3128042.html
http://www.cnblogs.com/henw/archive/2012/01/31/2333783.html
1 if ("http://" + Request.UrlReferrer.Host + ":" + Request.UrlReferrer.Port == ConfigStore.CommonSettings.App_Site_Url) 2 { 3 Random randnum = new Random(); 4 string telcode = randnum.Next(1000, 9999).ToString(); 5 return Json(new { flag = true }); 6 }