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

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