广告推广方式不够优化,asp判断是蜘蛛还是普通访问的代码,这是在网上找的,虽然我们不用类似这种作弊的方式,但是看到有网友咨询这个问题,所以就搜集一下:
<%
function GetBot() "查询蜘蛛 dim s_agent GetBot="" s_agent=Request.ServerVariables("HTTP_USER_AGENT") ‘关键判断语句 if instr(1,s_agent,"googlebot",1) >0 then GetBot="google" end if if instr(1,s_agent,"msnbot",1) >0 then GetBot="MSN" end if if instr(1,s_agent,"slurp",1) >0 then GetBot="Yahoo" end if if instr(1,s_agent,"baiduspider",1) >0 then GetBot="baidu" end if if instr(1,s_agent,"sohu-search",1) >0 then GetBot="Sohu" end if if instr(1,s_agent,"lycos",1) >0 then GetBot="Lycos" end if if instr(1,s_agent,"robozilla",1) >0 then GetBot="Robozilla" end if end function if GetBot="baidu" then "给百度定制的内容 elseif GetBot="google" then "给google 定制的内容 end if %>
下面是比较完整的代码需要的朋友也可以参考下。里面还包括了一些客户端信息。复制代码 代码如下:
Class SystemInfo_Cls Public Browser, version, platform, IsSearch, AlexaToolbar Private Sub Class_Initialize() Dim Agent, Tmpstr IsSearch = False If Not IsEmpty(Session("SystemInfo_Cls")) Then Tmpstr = Split(Session("SystemInfo_Cls"), "|||") Browser = Tmpstr(0) version = Tmpstr(1) platform = Tmpstr(2) AlexaToolbar = Tmpstr(4) If Tmpstr(3) = "1" Then IsSearch = True End If Exit Sub End If Browser = "unknown" version = "unknown" platform = "unknown" Agent = Request.ServerVariables("HTTP_USER_AGENT") If InStr(Agent, "Alexa Toolbar") > 0 Then AlexaToolbar = "YES" Else AlexaToolbar = "NO" End If If Left(Agent, 7) = "Mozilla" Then "有此标识为浏览器 Agent = Split(Agent, ";") If InStr(Agent(1), "MSIE") > 0 Then Browser = "Internet Explorer " version = Trim(Left(replace(Agent(1), "MSIE", ""), 6)) ElseIf InStr(Agent(4), "Netscape") > 0 Then Browser = "Netscape " Tmpstr = Split(Agent(4), "/") version = Tmpstr(UBound(Tmpstr)) ElseIf InStr(Agent(4), "rv:") > 0 Then Browser = "Mozilla " Tmpstr = Split(Agent(4), ":") version = Tmpstr(UBound(Tmpstr)) If InStr(version, ")") > 0 Then Tmpstr = Split(version, ")") version = Tmpstr(0) End If End If If InStr(Agent(2), "NT 5.2") > 0 Then platform = "Windows 2003" ElseIf InStr(Agent(2), "Windows CE") > 0 Then platform = "Windows CE" ElseIf InStr(Agent(2), "NT 5.1") > 0 Then platform = "Windows XP" ElseIf InStr(Agent(2), "NT 4.0") > 0 Then platform = "Windows NT" ElseIf InStr(Agent(2), "NT 5.0") > 0 Then platform = "Windows 2000" ElseIf InStr(Agent(2), "NT") > 0 Then platform = "Windows NT" ElseIf InStr(Agent(2), "9x") > 0 Then platform = "Windows ME" ElseIf InStr(Agent(2), "98") > 0 Then platform = "Windows 98" ElseIf InStr(Agent(2), "95") > 0 Then platform = "Windows 95" ElseIf InStr(Agent(2), "Win32") > 0 Then platform = "Win32" ElseIf InStr(Agent(2), "Linux") > 0 Then platform = "Linux" ElseIf InStr(Agent(2), "SunOS") > 0 Then platform = "SunOS" ElseIf InStr(Agent(2), "Mac") > 0 Then platform = "Mac" ElseIf UBound(Agent) > 2 Then If InStr(Agent(3), "NT 5.1") > 0 Then platform = "Windows XP" End If If InStr(Agent(3), "Linux") > 0 Then platform = "Linux" End If End If If InStr(Agent(2), "Windows") > 0 And platform = "unknown" Then platform = "Windows" End If ElseIf Left(Agent, 5) = "Opera" Then "有此标识为浏览器 Agent = Split(Agent, "/") Browser = "Mozilla " Tmpstr = Split(Agent(1), " ") version = Tmpstr(0) If InStr(Agent(1), "NT 5.2") > 0 Then platform = "Windows 2003" ElseIf InStr(Agent(1), "Windows CE") > 0 Then platform = "Windows CE" ElseIf InStr(Agent(1), "NT 5.1") > 0 Then platform = "Windows XP" ElseIf InStr(Agent(1), "NT 4.0") > 0 Then platform = "Windows NT" ElseIf InStr(Agent(1), "NT 5.0") > 0 Then platform = "Windows 2000" ElseIf InStr(Agent(1), "NT") > 0 Then platform = "Windows NT" ElseIf InStr(Agent(1), "9x") > 0 Then platform = "Windows ME" ElseIf InStr(Agent(1), "98") > 0 Then platform = "Windows 98" ElseIf InStr(Agent(1), "95") > 0 Then platform = "Windows 95" ElseIf InStr(Agent(1), "Win32") > 0 Then platform = "Win32" ElseIf InStr(Agent(1), "Linux") > 0 Then platform = "Linux" ElseIf InStr(Agent(1), "SunOS") > 0 Then platform = "SunOS" ElseIf InStr(Agent(1), "Mac") > 0 Then platform = "Mac" ElseIf UBound(Agent) > 2 Then If InStr(Agent(3), "NT 5.1") > 0 Then platform = "Windows XP" End If If InStr(Agent(3), "Linux") > 0 Then platform = "Linux" End If End If Else "识别搜索引擎 Dim botlist, i botlist = "Google,Isaac,Webdup,SurveyBot,Baiduspider,ia_archiver,P.Arthur,FAST-WebCrawler,Java,Microsoft-ATL-Native,TurnitinBot,WebGather,Sleipnir" botlist = Split(botlist, ",") For i = 0 To UBound(botlist) If InStr(Agent, botlist(i)) > 0 Then platform = botlist(i) & "搜索器" IsSearch = True Exit For End If Next End If If IsSearch Then Browser = "" version = "" Session("SystemInfo_Cls") = Browser & "|||" & version & "|||" & platform & "|||1|||" & AlexaToolbar Else Session("SystemInfo_Cls") = Browser & "|||" & version & "|||" & platform & "|||0|||" & AlexaToolbar End If End Sub End Class
关于介绍就到这里了!
网络推广的方式有哪些?(2024年7种常见的网络推广方式)同时企业想要做好推广,推广方案是必不可少的,不要想着一样,就做一样,这样效果也同样不是很理想的。那么网络营销推广的方法和技巧有哪些呢?常见的有以下7种。
1.微信和朋友圈以及公众号“六度分隔”理论表明,你和陌生人之间的距离不会超过五个,也就是说通过五个人你就能认识一个新的陌生人,如果你的产品想要被新消费者知道,也需要朋友圈和公众号的传播。
2.百度搜索、贴吧、微博搜索当我们对某个问题有疑问时,首先想到的就是问度娘(百度);而无数人早上醒来的第一件事就是打开微博,所以我们不应该忽视传统网络平台的力量。
3.垂直媒体运营比如知乎、小红书等,都有着自己庞大的用户群体,如果你的产品或者服务的目标人群在这些平台上面,就可以针对平台规则和调性进行内容策划和运营了。
4.搜索引擎营销搜索引擎营销也就是我们常说的SEM竞价,在各类搜索引擎服务商那里开户,搭建账户,进行关键词的优化操作,最终在搜索引擎结果页上获得更高排名占位的营销方式。
5.软文推广顾名思义,软文推广就是用文章进行推广,不同的是这种文章是软文,相比硬广告来说,这种文章具有“软”的特点,更容易让用户接受。写文章宣传产品,然后发布在一些门户网站、论坛或者付费媒体平台上,坚持下去,效果肯定会很好的。
6.信息流广告投放信息流广告是位于社交媒体、新闻媒体或者视听媒体内容中的一种动态展示广告,比如手机百度、今日头条、腾讯新闻、新浪新闻等,也是在各平台服务商那里开户,然后添加广告组,创意等进行投放的一种方式。
7.短视频/视频营销如今,作为一种流行的营销广告形式,视频受到越来越多品牌的青睐,而对于网络营销,您的客户可以来自世界各地。越来越多的用户在选择产品时会观看产品展示视频。视频可以快速拉近品牌与消费者的距离,更直观地体现品牌的形象和品质。
以上几种方式对于企业来说,都是相对比较实用的,也是企业在网络上必不可少的推广方式,至于以前的邮件和短信营销方式,现在基本都已经淘汰了,效果不理想,不建议采取。企业做推广前,最重要的一点是先分析自己的产品在哪个平台推广比较有优势。今天讲解了广告推广方式不够优化相关知识,一起来看看更多
网络营销推广方案分析:
知已知彼,百战不殆。在做任何网络营销推广方案之前,都必须对行业背景做一定量的功课,了解自身与竞争对手有一个详细了解。自己优势在哪里?自己哪些方面不如竞争对手?竞争对手做了什么?竞争对手正在做什么?它们下一步又想做什么?
1、本网站名称:
推广发布网
2、本站永久网址:
http://tgfbw.cn
3、本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行删除处理。
4、
广告推广方式不够优化 点击访问网址链接直达