code: public function enableBlockMode():void
      {
          if (!$this->enableProtection) {
              throw new MiddlewareException(
                  $this,
                  "You can't enable the block mode because the XSS protection is disabled"
              );
          }
          if ($this->reportUri) {
              throw new MiddlewareException(
                  $this,
                  sprintf(
                      "You can't enable the block mode because the report mode is already enabled (see %s)",
                      'https://developer.mozilla.org/docs/Web/HTTP/Headers/X-XSS-Protection'
                  )
              );
          }
          $this->blockMode = true;
      }
docs: Enables the report mode.
  
  @throws MiddlewareException