Esempio n. 1
0
        private bool IsBanned(string ip)
        {
            // 2008-08-13 this list got too large over time
            // better to make a small hit to the db on each request than to cache this huge List

            //List<String> bannedIPs = CacheHelper.GetBannedIPList();
            //if(bannedIPs.Contains(ip))return true;
            //return false;

            return(BannedIPAddress.IsBanned(ip));
        }