zoukankan      html  css  js  c++  java
  • asp.net2 统一搜索引擎关键字编码[转]

    程序代码

    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using System.Text;

    /// <summary>
    /// 搜索引擎处理
    /// </summary>

    public class ExJudgeSystem
    {
        
    public ExJudgeSystem()
        
    {

        }

        
    初始化变量

        
    搜索引擎关键字

        
    //判断否为搜索引擎爬虫,并返回其类型
        public string isCrawler(string SystemInfo)
        
    {
            
    string[] BotList = new string[] "Google""Baidu""MSN""Yahoo""TMCrawler""iask""Sogou" };
            
    foreach (string Bot in BotList)
            
    {
                
    if (SystemInfo.ToLower().Contains(Bot.ToLower()))
                
    {
                    
    return Bot;
                }

            }

            
    return "null";
        }

    }

  • 相关阅读:
    2011大纽约区域赛试题 Decoding EDSAC Data 解题报告
    湘大OJ第1484题 Allocation of Memory
    谈谈对js作用域的理解与疑问,请各位指正。
    Closure Linter工具介绍,挺好用的。
    JSTL标签用法
    守柔WORD编程代码集 CHM版
    返回任意输出月的最后一天
    Spring中MultipartHttpServletRequest实现文件上传
    SPringMVC注解驱动 .
    账号正在另一客户端登录 判断方法
  • 原文地址:https://www.cnblogs.com/ghx88/p/1014349.html
Copyright © 2011-2022 走看看