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
| Option | Description |
|---|---|
Name | A 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 Selector | Which form to target (e.g., #contact-form, .login-form) |
URL Pattern | Regex pattern to match page URLs |
Priority | Execution order (0–1000, lower = first) |
Sample Rate | Percentage 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