src/Request.php
private function antiHtml(): void
    {
        // 取防入侵配置
        $config = configDefault(null, 'anti');
        if (!$config) {
            return;
        }

        // 如果来访IP在黑名单 中
        if (in_array($this->rawIp(), $config['blackip']) or $this->rawIp() == '-' and in_array($this->ip(), $config['blackip'])) {
            FileLog::instance()->blackIp($this->rawIp(), $this->ip(), $_REQUEST);
            exit();
        }

        if (isset($_REQUEST)) {
            $this->antiHtmlArray($_REQUEST, $config);
        }

        // 不允许 FLASH访问
        if (isset($_SERVER['HTTP_X_FLASH_VERSION']) and $_SERVER['HTTP_X_FLASH_VERSION'] and $this->ip() === $this->rawIp()) {
            FileLog::instance()->flash($this->ip(), $_REQUEST, $_SERVER);
            exit();
        }
    }
private function antiHtml(): void
    {
        // 取防入侵配置
        $config = configDefault(null, 'anti');
        if (!$config) {
            return;
        }

        // 如果来访IP在黑名单 中
        if (in_array($this->rawIp(), $config['blackip']) or $this->rawIp() == '-' and in_array($this->ip(), $config['blackip'])) {
            FileLog::instance()->blackIp($this->rawIp(), $this->ip(), $_REQUEST);
            exit();
        }

        if (isset($_REQUEST)) {
            $this->antiHtmlArray($_REQUEST, $config);
        }

        // 不允许 FLASH访问
        if (isset($_SERVER['HTTP_X_FLASH_VERSION']) and $_SERVER['HTTP_X_FLASH_VERSION'] and $this->ip() === $this->rawIp()) {
            FileLog::instance()->flash($this->ip(), $_REQUEST, $_SERVER);
            exit();
        }
    }
防入侵,包括IP黑名单,禁止字符,禁止词