« Return to the blog entry
Hi Jake.
To enable more than one vote behind proxy i use this code.
Set doc=s.Documentcontext
......
Dim realip As String
' Prevent Proxy IP
If doc.HTTP_X_FORWARDED_FOR(0)="" Then
realip=doc.remote_addr(0)
Else
realip=doc.HTTP_X_FORWARDED_FOR(0)
End if
Great Job.
Hi Jake.
To enable more than one vote behind proxy i use this code.
Set doc=s.Documentcontext
......
Dim realip As String
' Prevent Proxy IP
If doc.HTTP_X_FORWARDED_FOR(0)="" Then
realip=doc.remote_addr(0)
Else
realip=doc.HTTP_X_FORWARDED_FOR(0)
End if
Great Job.