Skip to main content

Rate-limiting submissions

Rate limiting can be enabled in Jadu Central forms by amending the application's configuration.

To do this:

  1. Open the file config/xfp/constants.xml in a text editor.
  2. Amend or add the lines below:
    1. xforms_rate_limiting_allowed_submissions this is the number of submissions before rate-limiting is triggered
    2. xforms_rate_limiting_period this is the period in minutes in which the allowed submissions are counted
    3. xfp_ratelimit_enabled this configuration value enables rate limiting
  3. Clear the configuration cache of the application

Example:

<xforms_rate_limiting_allowed_submissions>1</xforms_rate_limiting_allowed_submissions>
<xforms_rate_limiting_period>10</xforms_rate_limiting_period>
<xfp_ratelimit_enabled config:type="bool">true</xfp_ratelimit_enabled>