请选择 进入手机版 | 继续访问电脑版
网站建设设为首页收藏本站

二亩地专业建站/网站制作建设公司

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3326|回复: 0

判断是不是从百度来的 [复制链接]

真实姓名
二亩地
admin 发表于 2013-11-23 11:34:34 |显示全部楼层
  1. <!--判断开始-->
  2. <%
  3. dim urlstr
  4. urlstr=request.servervariables("http_referer")
  5. if urlstr<>"" then
  6. if instr(urlstr,"http://www.baidu.com")=1 or instr(urlstr,"http://www.ermudi.cn")=1  then  
  7. %>


  8. <%
  9. response.Cookies("guanggao")="1"
  10. response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
  11. %>

  12. <%
  13. end if
  14. end if
  15. %>
  16. <!--判断结束-->
复制代码

  1. <%
  2. dim urlstr
  3. urlstr=request.servervariables("http_referer")
  4. if urlstr<>"" then
  5.   if (instr(urlstr,"http://www.baidu.com")=1 or instr(urlstr,"http://www.ermudi.cn")=1) then
  6.       if request.Cookies("guanggao")="" then
  7. %>


  8. <%
  9. response.Cookies("guanggao")="1"
  10. response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
  11. %>

  12. <%
  13. end if
  14. end if
  15. end if
  16.   %>
复制代码

  1. <%
  2.   if request.Cookies("guanggao")="" then
  3. %>

  4. <!--开始广告-->


  5. <!--结束广告-->

  6. <%
  7.   response.Cookies("guanggao")="1"
  8.   response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
  9.   end if
  10. %>
复制代码



建站7年,服务客户1700之多。

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册


扫描添加微信

Archiver|手机版|二亩地专业建站/网站制作建设公司 ( 冀ICP备13016078号-2 )  网站地图 冀公网安备 13010402001120号

GMT+8, 2024-3-29 02:03 , Processed in 0.038054 second(s), 22 queries .

回顶部