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.

How does the REST maximum body size limit work in Aegisify WAF?

Legacy maximum body bytes sets an upper limit on the size of REST request bodies. It is in Aegisify WAF → API & Application → REST Protection (Pro) and works once REST hardening is enabled.

How it works

  • 0 (default) means unlimited: no size check.
  • With a positive value, any REST request whose body is larger than that many bytes is blocked with HTTP 403 and logged with the reason body_too_large, including the body length and the limit.

Older documentation said this returned HTTP 413. In current releases the WAF responds with 403 Forbidden.

Why limit body size?

Very large JSON bodies can:

  • Exhaust PHP memory while plugins decode them.
  • Carry oversized payloads designed to slow the site (a simple denial of service).
  • Hide malicious data beyond what inspection reads.

Choosing a value

  1. Find the largest legitimate REST body your site receives. Editors saving long posts or page-builder layouts can send large bodies, although logged-in users bypass this check by default.
  2. For anonymous traffic, 64 KB to 256 KB (65,536 to 262,144 bytes) is often generous.
  3. Allowlist any route that genuinely needs larger anonymous uploads.

Different from inspection size

The maximum body inspection setting in WAF Settings limits how much of a body is *scanned*. This setting *rejects* oversized REST requests. See Max request body bytes for inspection.

Related: Require JSON content type.

2026-12-01T03:52:18+00:00January 12th, 2026||

Find this article interesting, please share.