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";
        }

    }

  • 相关阅读:
    Ubuntu “Failed to fetch”错误的解决方法
    #ifndef 与#pragma once
    vs TODO list使用
    window脚本编写bat程序执行
    vtk 的qt插件编译
    git bash 下载加速
    条件欧几里得聚类 pcl::ConditionalEuclideanClustering
    ANY数据类型的使用
    《C#编程风格》还记得多少
    驼峰命名法则
  • 原文地址:https://www.cnblogs.com/ghx88/p/1014349.html
Copyright © 2011-2022 走看看