二亩地专业建站/网站制作建设公司
标题:
判断是不是从百度来的
[打印本页]
作者:
admin
时间:
2013-11-23 11:34:34
标题:
判断是不是从百度来的
<!--判断开始-->
<%
dim urlstr
urlstr=request.servervariables("http_referer")
if urlstr<>"" then
if instr(urlstr,"http://www.baidu.com")=1 or instr(urlstr,"http://www.ermudi.cn")=1 then
%>
<%
response.Cookies("guanggao")="1"
response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
%>
<%
end if
end if
%>
<!--判断结束-->
复制代码
<%
dim urlstr
urlstr=request.servervariables("http_referer")
if urlstr<>"" then
if (instr(urlstr,"http://www.baidu.com")=1 or instr(urlstr,"http://www.ermudi.cn")=1) then
if request.Cookies("guanggao")="" then
%>
<%
response.Cookies("guanggao")="1"
response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
%>
<%
end if
end if
end if
%>
复制代码
<%
if request.Cookies("guanggao")="" then
%>
<!--开始广告-->
<!--结束广告-->
<%
response.Cookies("guanggao")="1"
response.cookies("guanggao").expires=dateadd("d",1,datevalue(date))
end if
%>
复制代码
欢迎光临 二亩地专业建站/网站制作建设公司 (http://www.ermudi.cn/)
Powered by Discuz! X2