Found the reason for the stange Agents from my own IP: request.servervariables("remote_addr") was being used in the notify email rather than the IP in the DB.
I don't seem to recieve any e-mails from this page? How is that supposed to work? I did edit the first lines actually two of them to reflect my e-maill address just so you know.
If StrBrowser="" and Session("newua") <> ua and Session("newuaip") <> uaip Then
strBrowser = cStr(ua) 'fLang(strLangMOD_Ls3kAU_01150)
set mailobj = server.createobject("cdonts.newmail")
mailobj.to = StrToAddr
mailobj.from = StrFromAddr 'PLEASE CHANGE THIS LINE TO YOUR OWN EMAIL ADDRESS
mailobj.subject = "Solat forum - New User Agent"
mailobj.body = "Agent=""" & ua & """" & vbcrlf & "IP: " & uaip & vbcrlf & "Email sent from: " & Request.ServerVariables("SERVER_NAME") 'IP is needed so I can see which search engines or organsations a bot belongs to
mailobj.send
set mailobj = nothing
Session("newua") = ua
Session("newuaip") = uaip
end if
to this
If StrBrowser="" and (instr(Session("newua"),ua) = 0) and (instr(Session("newuaip"),uaip) =0) Then
strBrowser = cStr(ua) 'fLang(strLangMOD_Ls3kAU_01150)
set mailobj = server.createobject("cdonts.newmail")
mailobj.to = StrToAddr
mailobj.from = StrFromAddr 'PLEASE CHANGE THIS LINE TO YOUR OWN EMAIL ADDRESS
mailobj.subject = "Solat forum - New User Agent"
mailobj.body = "Agent=""" & ua & """" & vbcrlf & "IP: " & uaip & vbcrlf & "Email sent from: " & Request.ServerVariables("SERVER_NAME") 'IP is needed so I can see which search engines or organsations a bot belongs to
mailobj.send
set mailobj = nothing
Session("newua") = Session("newua") & " " & ua
Session("newuaip") = Session("newuaip") & " " & uaip
end if
I hope i got that bug-free coz it was off the top of my head. If you have more than one new agent visiting in the same session, the amended code will handle this correctly.
I updated my code with the above & my active users is back to showing every one on "This Page" .... I think we worked on this before, but I cant remember what the differences are ....Anyone ?