Advanced Per-Route Controls let you write a precise policy for an individual API route, such as WooCommerce orders or a custom endpoint, instead of applying one rule to the whole API. They are in Aegisify WAF → API & Application → Per-Route Controls (Pro).
Fields in a route control
- Pattern: the route this control owns, for example
/wc/v3/orders/*. - Methods: a comma-separated list such as
GET,POST, or*for all. - Required authentication: Inherit (default), None, WordPress, JWT, or API key.
- Policy mode: Inherit (default), Monitor (never blocks), or Enforce.
- Identity request limit: 0 inherits the global limit, -1 disables identity rate limiting for this route, or a positive number sets a route ceiling.
- Identity window seconds: 0 inherits the global window.
- Rate identity: Adaptive (default) picks the strongest verified identity available.
- Maximum body bytes: 0 inherits the global inspection size.
- BOLA object parameter and BOLA subject claim (default
sub): compare the object being accessed with the authenticated subject to detect broken object-level authorization. - GraphQL max depth and max aliases: 0 inherits the global limits.
- Rule enabled: on by default.
Enforcement needs several approvals
A route in Enforce mode can reject requests only when global enterprise API enforcement is also enabled and the decision policy qualifies. This layered design prevents a single saved route from unexpectedly blocking traffic.
Legacy threshold rules
An older, one-line-per-rule syntax (pattern, category, profile, per-method thresholds) is still accepted under Legacy Progressive Threshold Rules for backward compatibility. New policies should use structured route controls.
Related: Add, edit, delete route controls, API Shield endpoint policy control.
