Пример #1
0
        /// <summary>
        /// Internal Ip Address Checking
        /// </summary>
        /// <param name="ipAddress"></param>
        /// <param name="accountId"></param>
        /// <returns></returns>
        private bool InternalSpamIPCheck(string ipAddress, int accountId, out string remarks)
        {
            bool isSpam = false;

            remarks = string.Empty;
            IList <string> SpamIps = new List <string>();
            string         ipAdd   = ipAddress;
            string         newIP   = ipAddress;

            if (ipAdd == "::1")
            {
                newIP = "127.0.0.1";
            }
            isSpam = formRepository.CheckForSpamIP(newIP, accountId, true);
            if (isSpam)
            {
                remarks = "Internal Spam IP Check Failed";
            }

            return(isSpam);
        }