We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Application Firewall

Configuring a JSON Policy

  • Last updated on

A JSON policy is associated with a JSON profile to validate the requests based on the policy settings. To add a JSON policy, perform the following steps:

  1. Go to the WEBSITES > JSON Security page.
  2. In the JSON Policies section, click Add JSON Policy.
  3. In the Add JSON Policy window, specify values for the following:
    1. Policy Name: Enter a name to identify this JSON policy.
    2. Max Keys: Specify the maximum allowable keys in the JSON request.
      1. Minimum: 0
      2. Maximum: 16384
    3. Max Key Length: Specify the maximum allowable length for JSON key names.
      1. Minimum: 0
      2. Maximum: 1024
    4. Max Value Length: Specify the maximum allowable length for JSON value. This is applicable only for String datatype.
      1. Minimum: 0
      2. Maximum: 8192
    5. Click Show Advanced Options to configure advanced settings.
    6. Max Number Value: Specify the maximum allowable value for JSON "Number" datatype.
      1. Disable: 0
      2. Minimum: 1
      3. Maximum: 999999999999999
    7. Max Object Depth: Specify the maximum allowable depth for nested JSON structure.
      1. Minimum: 0
      2. Maximum: 64
    8. Max Array Elements: Specify the maximum allowable number of elements in an Array.
      1. Minimum: 0
      2. Maximum: 1024
    9. Max Siblings: Specify the maximum allowable number of elements in a single JSON object.
      1. Minimum: 0
      2. Maximum: 2048
    10. Click Save.

The created JSON policies are displayed in the JSON Policies section. If an existing policy is modified, the changes will be applied to the JSON profile to which the edited JSON policy is associated with.

Last updated on