> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aegister.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Blocca SQL injection e XSS su Cloud Defender

> Attiva o disattiva per un dominio il blocco di SQL injection, cross-site scripting e delle altre firme di attacco, con `{"enabled": true}` o `{"enabled": false}`. È disattivato per impostazione predefinita: le corrispondenze vengono solo rilevate ed elencate da «Recupera rilevamenti Cloud Defender». Quando è attivo, le richieste corrispondenti vengono rifiutate entro circa cinque minuti; disattivarlo lo annulla negli stessi tempi. «Recupera configurazione Cloud Defender» restituisce lo stato attuale in `signature_blocking` (`enabled`, `at`, `by`); se manca, il blocco è disattivato. Una firma può corrispondere anche a una richiesta di cui il tuo sito ha bisogno: prova il sito dopo averlo attivato e disattivalo se rifiuta qualcosa di legittimo. Proprietari e security officer con licenza attiva; chiunque altro riceve 404, e un `enabled` non booleano riceve 400.



## OpenAPI

````yaml put /api/v1/cloud-defender/{id}/signature-blocking
openapi: 3.1.0
info:
  title: Aegister API
  version: 2.10.0
servers: []
security: []
paths:
  /api/v1/cloud-defender/{id}/signature-blocking:
    put:
      tags:
        - cloud-defender
      summary: >-
        Switch SQL injection and XSS blocking on or off for a Cloud Defender
        domain
      description: >-
        Off by default: every request is checked and the matches listed as
        anomalies. On, they are refused at the

        edge; switch it off again if it refuses something the site needs.
      operationId: cloud_defender_signature_blocking_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - enabled
              properties:
                enabled:
                  type: boolean
            examples:
              SwitchBlockingOn:
                value:
                  enabled: true
                summary: Switch blocking on
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 0
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
                  data:
                    type: object
                    properties:
                      enabled:
                        type: boolean
              examples:
                BlockingOn:
                  value:
                    error: 0
                    messages: []
                    data:
                      enabled: true
                  summary: Blocking on
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - - Invalid data provided
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
          description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Aegister-Token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.