Rate limiting
{#if hasErrors} {/if} {#if formSettings.rateLimits.enabled} Enabled {:else} Disabled {/if} {#if !CommonHelper.isEmpty(formSettings.rateLimits.rules)} {#each formSettings.rateLimits.rules || [] as rule, i} {/each}
Rate limit label Max requests
(per IP)
Interval
(in seconds)
Targeted users
{ removeError("rateLimits.rules." + i); // reset rule errors }} />
{/if}

Rate limit label format

The rate limit label could be in one of the following formats:

  • [METHOD ]/my/path - full exact route match ( must be without trailing slash ; "METHOD" is optional).
    For example:
    • /hello - matches GET /hello, POST /hello, etc.
    • POST /hello - matches only POST /hello
  • [METHOD ]/my/prefix/ - path prefix ( must end with trailing slash; "METHOD" is optional). For example:
    • /hello/ - matches GET /hello, POST /hello/a/b/c, etc.
    • POST /hello/ - matches POST /hello, POST /hello/a/b/c, etc.
  • collectionName:predefinedTag - targets a specific action of a single collection. To apply the rule for all collections you can use the * wildcard. For example: posts:create, users:listAuthMethods, *:auth.
    The predifined collection tags are (there should be autocomplete once you start typing):
      {#each basePredefinedTags as tag}
    • {tag.value.replace("*:", ":")} {#if tag.description} ({tag.description}) {/if}
    • {/each}