scopeConfig->getValue( self::XML_PATH_DEV_ALLOW_IPS, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeId ); $remoteAddr = $this->_remoteAddress->getRemoteAddress(); if (!empty($allowedIps) && !empty($remoteAddr)) { $allowedIps = preg_split('#\s*,\s*#', $allowedIps, null, PREG_SPLIT_NO_EMPTY); if (array_search($remoteAddr, $allowedIps) === false && array_search($this->_httpHeader->getHttpHost(), $allowedIps) === false ) { $allow = false; } } return $allow; } }