I noticed that my IP address as being reported by Snitz was not what WinIPCfg said my IP address was. When I examined the server variables page, I found the HTTP_X_FORWARDED_FOR HTTP header which contained my real IP. The following code changes cause Snitz to report the users real IP
In inc_functions.asp add the following function (line 1877 in sr4)'## Return the remote users real IP address
function remoteIP()
remoteIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if remoteIP = "" then
remoteIP = Request.ServerVariables("REMOTE_ADDR")
end if
end function
Then in post_info.asp replace both calls to Request.ServerVariables("REMOTE_ADDR")
with remoteIP()
and anywhere else that REMOTE_ADDR is referenced (in my case, the Active Users mod needs changing also).
If there are other headers with hold this kind of information then it is a simple case of extending remoteIP() to deal with it.
Regards -
z