예제 #1
0
        public static BlockType GetBlockStatus(string ip)
        {
            var rawVal = DbAccess.IsBlocked(ip);

            if (rawVal == null || rawVal.Expiration < DateTime.UtcNow)
            {
                return(BlockType.Unblocked);
            }

            return(rawVal.Explicit ? BlockType.ExplicitBlocked : BlockType.HiddenBlocked);
        }