|
<%
referer =Request.ServerVariables("HTTP_REFERER")
url =Request.ServerVariables("URL")
ip =Request.ServerVariables("REMOTE_HOST")
if not(isnull(referer) or referer ="") then
u =InStr(referer, "&url=")
if u >0 then
u =u+5
n =InStr(referer, "&color_bg")
if n =0 then
n =InStr(referer, "&ad_type")
end if
if n >0 then
referer =mid(referer, u, n-u)
referer =replace(referer, "%3A%2F%2F","://")
referer =replace(referer, "%2F", "/")
referer =replace(referer, "%26", "&")
referer =replace(referer, "%25", "%")
referer =replace(referer, "%3D", "=")
referer =replace(referer, "%3F", "?")
end if
end if
referer =left(referer, 400)
end if
if not(isnull(url) or url ="") then
url =left(url, 400)
end if
conn.execute "insert into visitor_info(referer, url, ip) values('" & referer & "','" & url & "','" & ip & "')"
%>
其中并没有过滤非adwords点击 |
|