public function beforeValidate()
 {
     if (parent::beforeValidate()) {
         if (strpos($this->ip_address, '*') === false && strpos($this->ip_address, '/') === false && strpos($this->ip_address, '-') === false) {
             $this->scenario = 'checkWholeIP';
         }
         return true;
     } else {
         return false;
     }
 }