日期:2014-05-17 浏览次数:20513 次
Quote: 引用: <%@ WebHandler Language="C#" Class="webproxy" %> using System; using System.Web; using System.Net; using System.Xml.Serialization; public class webproxy : IHttpHandler { HttpResponse Response; HttpRequest Request; public Uri url; public void ProcessRequest(HttpContext context) { this.Response = context.Response; this.Request = context.Request; string qs = context.Request.Url.Query; if (string.IsNullOrEmpty(qs) ------解决方案-------------------- qs.Length < 10) { context.Response.StatusCode = 404; return; } ExpireProc(); qs = qs.Substring(1); if (!qs.StartsWith("http://", StringComparison.OrdinalIgnoreCase)) { Uri rdURI = GetRequestUrl(qs); if (System.Text.RegularExpressions.Regex.IsMatch(rdURI.AbsolutePath, "\\.(js------解决方案--------------------jpg------解决方案--------------------png------解决方案--------------------gif------解决方案--------------------css------解决方案--------------------bmp)$", System.Text.Regula
<%@ WebHandler Language="C#" Class="webproxy" %> using System; using System.Web; using System.Net; using System.Xml.Serialization; public class webproxy : IHttpHandler { HttpResponse Response; HttpRequest Request; public Uri url; public void ProcessRequest(HttpContext context) { this.Response = context.Response; this.Request = context.Request; string qs = context.Request.Url.Query; if (string.IsNullOrEmpty(qs) ------解决方案-------------------- qs.Length < 10) { context.Response.StatusCode = 404; return; } ExpireProc(); qs = qs.Substring(1); if (!qs.StartsWith("http://", StringComparison.OrdinalIgnoreCase)) { Uri rdURI = GetRequestUrl(qs); if (System.Text.RegularExpressions.Regex.IsMatch(rdURI.AbsolutePath, "\\.(js------解决方案--------------------jpg------解决方案--------------------png------解决方案--------------------gif------解决方案--------------------css------解决方案--------------------bmp)$", System.Text.Regula