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

标题: 判断是不是从百度来的 [打印本页]

作者: 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. %>
复制代码








欢迎光临 二亩地专业建站/网站制作建设公司 (http://www.ermudi.cn/) Powered by Discuz! X2