public function notSubmitterIpHostname($field, $value, $parameters)
    {
        $this->firewallService->getRules()->add(new PlainRule($value));
        $this->firewallService->updateRules();

        return $this->firewallService->isIpAllowed($this->request->getClientIp());
    }
public function notSubmitterIpHostname($field, $value, $parameters)
    {
        $this->firewallService->getRules()->add(new PlainRule($value));
        $this->firewallService->updateRules();

        return $this->firewallService->isIpAllowed($this->request->getClientIp());
    }
public function notSubmitterIpHostname ( $ field , $ value , $ parameters ) { $ this -> firewallService -> getRules ( ) -> add ( new PlainRule ( $ value ) ) ; $ this -> firewallService -> updateRules ( ) ; return $ this -> firewallService -> isIpAllowed ( $ this -> request -> getClientIp ( ) ) ; }
Rule to check if the submitter IP is not the same as the given one.

@param $field
@param string $value
@param array $parameters
@return bool
Rule to check if the submitter IP is not the same as the given one .