在Application_BeginRequest事件里判断来源主机或者是不是大站。
Application_BeginRequest(Object sender, EventArgs e)
{
if(HttpContext.Request.Uri.Host!="大站")
HttpContext.Server.Transfer("error.aspx");
}
大致这样,可以作更详细的条件判断。
Application_BeginRequest(Object sender, EventArgs e)
{
if(HttpContext.Request.Uri.Host!="大站")
HttpContext.Server.Transfer("error.aspx");
}
大致这样,可以作更详细的条件判断。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货