Example #1
0
        public static long GetIPAddressUserId(this HttpRequestBase request)
        {
            var ip       = request.GetIPAddress();
            var ipString = IPAddress.Parse(ip).ToUncompressedString();

            return(Math.Abs(ipString.GetHashCode()));
        }
 public static bool IsFromLocalhost(this HttpRequestBase request)
 {
     return(Functions.BrowserFunctions.IsFromLocalhost(request.GetIPAddress()));
 }