Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

Which per-path limit wins when several Abuse & Bots patterns match?

When more than one per-path threshold matches a request in Abuse & Bots, Aegisify WAF uses the longest matching pattern. Longer patterns are more specific, so the most specific rule wins.

Example

You configure:

  • /wp-json/* with a limit of 240 per minute.
  • /wp-json/wc/store/* with a limit of 120.
  • /wp-json/wc/store/cart/add-item with a limit of 30.

A request to /wp-json/wc/store/cart/add-item matches all three. The third pattern is the longest, so the 30 per minute limit applies. A request to /wp-json/wc/store/products uses 120. A request to /wp-json/wp/v2/posts uses 240.

If no per-path pattern matches, the default limit (180 per minute) applies.

Why longest-match?

It lets you set a sensible limit for a whole area and then tighten (or relax) individual endpoints without reordering a list or worrying about priority numbers.

Counters are separate

Each matched pattern has its own counter. Requests counted against /wp-json/wc/store/* do not count against /wp-json/* at the same time.

Checking which rule applied

Rate-limit events in the logs record the matched pattern and limit per minute, so you can confirm the precedence is working as you expect.

Related: Wildcard matching, Bot Control logging.

2026-12-01T03:51:55+00:00January 12th, 2026||

Find this article interesting, please share.