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 do I enable REST API protection in Aegisify WAF?

The WordPress REST API (everything under /wp-json/) powers the block editor, many plugins, and headless sites. It is also a common target for user enumeration and plugin exploits. Aegisify WAF’s REST hardening is in Aegisify WAF → API & Application → REST Protection (Pro).

Turning it on

  1. Confirm Enable the WordPress protection layer is ticked (it is by default).
  2. Tick Enable legacy REST hardening and progressive thresholds. This is off by default, so REST behavior does not change until you opt in.
  3. Choose the individual controls below and click Save REST API Protection.

Controls available

  • Only apply legacy REST hardening to unauthenticated requests (on by default): logged-in users bypass these checks.
  • Block unauthenticated /wp/v2/users enumeration (on by default).
  • Require WordPress authentication for write methods unless allowlisted.
  • Require a JSON media type for REST requests with a body.
  • Legacy maximum body bytes (0 = unlimited).
  • REST route allowlist and CORS Origin allowlist.
  • Legacy shared API key for unauthenticated requests.
  • Window seconds and Challenge at / Rate-limit at / Block at thresholds (0 disables a step).

Roll out carefully

Some plugins and themes call the REST API from the public front end without logging in (for example forms, search, or store blocks). Enable one control at a time, then test those features. Use the REST route allowlist for routes that must stay public.

Evidence

REST decisions are logged with the category wp_protect and include a reason such as user_enumeration or unauthenticated_write.

Related: WordPress protection layer, WordPress REST API security risks.

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

Find this article interesting, please share.