Form Rules

Create custom protection rules for individual forms on your website.

In your dashboard, go to API Keys → select a key → Edit → Rules tab.

What Are Form Rules?

Form rules let you apply different protection levels to different forms. For example, you might want strict protection on your login form but lighter protection on a newsletter signup.

Rule Options

OptionDescription
NameA descriptive label for this rule
Mode'protect' = active protection, 'monitor' = log only, 'whitelist' = skip protection
On Suspicious'block' = reject, 'challenge' = show CAPTCHA, 'warn' = log and allow
CSS SelectorWhich form to target (e.g., #contact-form, .login-form)
URL PatternRegex pattern to match page URLs
PriorityExecution order (0–1000, lower = first)
Sample RatePercentage of requests to check (0–100%)

Examples

  • Strict login protection: selector #login-form, mode protect, on fail block
  • Monitor newsletter signups: selector .newsletter, mode monitor
  • Skip admin area: URL pattern /wp-admin/.*, mode whitelist