Last night I noticed 7 visitors in the active user list with a spoofed browser and OS. They showed up in the list as: "No User Agent/SPOOFED"
The IP-adresses were from several countries all around the world. I presume these were spiders from an unknown search engine.
To get rid of them I made a modification in inc_func_common.asp:
(modifications in red)
Sub ActiveUserTracker()
Dim strUserIP, strScriptName, strQueryString, strUserAgent, strCurrentTime, strTimedOut
strUserIP = Request.ServerVariables("REMOTE_ADDR")
strScriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InstrRev(Request.ServerVariables("SCRIPT_NAME"), "/")+1)
strQueryString = Request.ServerVariables("QUERY_STRING")
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strCurrentTime = DateToStr(strForumTimeAdjust)
if len(strUserAgent) < 3 then ' spoofed user agent
Response.Redirect "nospoofing.asp"
end if
Is this the correct way to get rid of these bandits or is there a better way?
Thanks,
HenneP