asp获取被访问页面

来源:百度知道 编辑:UC知道 时间:2024/06/20 15:51:55
我要做个站点统计
想知道我这个站点有哪些页面被访问
访问来源等等
就是类似51yes的访问
这个怎么实现?
别跟我说用别人的 我的意思就是自己写
1楼的可能没明白我的意思
我的意思是要获取我自己的站点哪些页面被访问了 什么时候访问的 这个才是重要的
就象IIS日志里的信息

访问来源地址:Request.ServerVariables("HTTP_REFERER")
获得来访IP:
realip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
proxy = Request.ServerVariables("REMOTE_ADDR")
if realip = "" then
get_ip = proxy
else
get_ip = realip
end if
获得浏览器的信息用以下函数
Function SystemCheck()
useragent=Request.ServerVariables("HTTP_USER_AGENT")
'转化为小写
useragent=Lcase(useragent)

'Browser Check
dim btype,bname,bversion,idx,Os
btype=""
if inStr(useragent,"icab") then
bname="iCab"
elseif inStr(useragent,"lynx") then
bname="Lynx"
elseif inStr(useragent,"links") then
bname="Links"
elseif inStr(useragent,"elinks") then
bname="ELinks"
elseif inStr(useragent,"jbrowser") then
bname="JBrowser"
elseif inStr(useragent,&