Aegisify company logo
API Shield & Endpoint Policy Control2026-08-13T22:14:43+00:00
Aegisify WAF — API Shield

WordPress API Shield: Protect REST and AJAX With Endpoint-Aware Policy

Aegisify WAF 1.20.13 adds a structured API security layer for WordPress REST routes and authenticated or public AJAX actions. It can monitor discovered traffic first, validate contracts and identity, apply per-route controls, classify response exposure, and use score-and-evidence gates before API monitoring is allowed to block.

Do not secure every API route as if it performs the same job.
A public read endpoint, authenticated account action, webhook, GraphQL route, and administrative integration have different risks. API Shield lets policy follow the endpoint.

1DiscoverREST + AJAX
2ValidateIdentity + contract
3ControlMonitor or enforce

API Decision Flow

From Route Discovery to a Defensible Enforcement Decision

API Shield separates monitoring, protocol validation, identity policy, per-route requirements, and the final risk decision instead of treating every unusual request as block-worthy.

Click a stage to expand

01ObserveREST + AJAX inventory
Automatic monitoring can cover registered and observed REST routes plus authenticated and public WordPress AJAX actions. Monitoring produces aggregate activity while suspicious API events use the WAF evidence pipeline.
02ContractOpenAPI / Swagger
Administrators can validate and import OpenAPI 3.x or Swagger 2.0 JSON. When configured, API Shield can identify undocumented routes or methods, deprecated operations receiving traffic, and routes not registered with WordPress.
03IdentityWordPress, JWT, API key
Global and route-level controls can require no authentication, any supported identity, WordPress authentication, validated JWT, or an enterprise API key. JWT checks support configured algorithms, issuer, audience, and required claims.
04Route PolicyAuth, rate, body, BOLA
Per-route controls can set methods, authentication, rate limits and identity basis, request-body bounds, object-to-subject comparisons for BOLA compensation, GraphQL limits, and Monitor or Enforce mode.
05Risk GateScore + evidence
The default API monitoring block gate uses a score threshold of 10 and at least two independent block-eligible signals. Duplicate codes and multiple findings from the same policy family do not inflate the independent-evidence count.
06ReviewActivity + decisions
Administrators can sort monitored route and AJAX activity by recorded events, alerts, or blocks, inspect recent evidence, and keep blocking separately controlled from monitoring and notifications.
Safe Monitoring Defaults

See API Activity Before Turning on Blocking

API monitoring and API enforcement are separate controls in Aegisify WAF.

REST and AJAX monitoring can collect route-level activity without automatically enabling blocking. Notifications can aggregate repeated matching events using minimum event count, time window, risk score, evidence, and cooldown instead of sending one email per request.

When enforcement is deliberately enabled, the default decision model requires a block score of 10 and two independent block-eligible signals. A critical single-signature exception is off by default. Explicit custom Block rules and deterministic API policies can be honored only when their corresponding controls are intentionally active.

Security posture improvement: monitoring-first deployment gives teams real application traffic to tune against. The score-and-evidence gate then reduces the chance that one ordinary signature becomes an API outage.
API Control Layers

Contract, Protocol, Identity, Authorization, and Response Exposure

API Shield covers several different API failure modes because no single rule type is enough.

Contract Validation

OpenAPI 3.x and Swagger 2.0

Import a validated JSON contract and compare observed requests with documented operations. Optional policies cover undocumented routes or methods, deprecated operations still receiving traffic, and unregistered WordPress REST routes.

Protocol Controls

GraphQL and gRPC Boundaries

GraphQL analysis supports configurable maximum depth and alias counts, with optional introspection blocking. The global defaults are depth 12 and 25 aliases. A separate control can reject binary gRPC traffic that WordPress cannot field-decode through a gateway.

Identity Controls

WordPress, JWT, and API Keys

JWT validation supports HS256/RS256, issuer, audience, required claims, and an RS256 public key. Enterprise API keys are stored as hashes, and route policy selects the required identity type.

Per-Route Policy

Control High-Risk Endpoints Without Over-Hardening the Entire API

Aegisify route controls can change security behavior for a specific path and method set.

01 — Authentication

Require the Right Identity

Each route can inherit global policy or require none, any supported identity, WordPress authentication, JWT, or an API key, keeping public reads separate from privileged writes.

02 — Rate Identity

Throttle by Meaningful Requester

Route limits can group requests adaptively or by IP, WordPress user, JWT client, API key, or session. Windows are bounded so high-cost endpoints can receive tighter controls than ordinary traffic.

03 — Payload

Bound Request Size

Per-route request-body limits complement the global inspection boundary. This helps control unusually large request workloads.

04 — BOLA Compensation

Compare Object Identity to Subject Identity

For suitable routes, policy can compare a request object parameter with an authenticated subject claim. Missing or mismatched values become authorization evidence.

05 — GraphQL Limits

Override Depth and Alias Limits

GraphQL depth and alias limits can be overridden for a specific route instead of weakening every GraphQL endpoint.

06 — Policy Mode

Monitor or Enforce Per Route

A route can inherit global behavior or use Monitor or Enforce mode. More aggressive blocking changes require explicit acknowledgement when current protection would become materially stricter.

WordPress-Specific Hardening

Legacy REST Protection Still Covers Common WordPress Abuse Paths

Structured API intelligence sits alongside a simpler WordPress REST hardening layer.

Administrators can restrict REST protection to unauthenticated requests, block unauthenticated /wp/v2/users enumeration, require WordPress authentication for write methods unless allowlisted, require JSON media types for requests with bodies, apply a maximum body size, and maintain REST route or CORS origin allowlists.

A legacy shared API key and progressive challenge, rate-limit, and block thresholds remain available for environments that use that model. These controls should be activated only when the integrations using the affected routes are known, because headless front ends, ecommerce services, automation, and third-party plugins can depend on WordPress REST behavior.

Response and Automation Controls

Protect More Than the Incoming Request

API risk can also come from excessive response exposure or unmanaged configuration change.

01

Response Data Classification

API Shield can detect excessive PII-like field exposure in supported JSON responses and use a configurable field threshold, with a route allowlist for endpoints where the response is intentionally broader.

02

Local Discovery and Inventory

Discovered API inventory records route, protocol or methods, discovery state, schema context, authentication indicators, PII classes, and last-seen information. Inventory helps teams identify what exists before deciding what needs enforcement.

03

CI/CD Management Boundary

An optional admin-authenticated management interface can expose WAF configuration and API inventory for controlled automation. It remains capability-protected and should be enabled only where an authenticated operational workflow requires it.

Start With API Visibility

Map the Routes First. Enforce the High-Risk Paths Deliberately.

Use monitoring and inventory to understand REST and AJAX behavior, then add identity, contract, rate, and route controls where the application actually needs them.

Get Started

API Shield FAQ

Common Questions About WordPress API Protection

Does enabling monitoring also enable API blocking?

No. Monitoring, alerting, and enforcement are separate. Aegisify can collect route and AJAX activity without turning on blocking, and stronger enforcement transitions require administrator action.

Can API Shield validate an OpenAPI specification?

Yes. The supplied 1.20.13 implementation accepts OpenAPI 3.x and Swagger 2.0 JSON documents within its bounded import limits and compiles supported request-contract information for runtime validation.

Does BOLA checking replace application authorization?

No. It is a compensating policy for suitable routes. WordPress and application code must still enforce the resource’s actual authorization rules.

Will strict API controls break integrations?

They can if activated without understanding legitimate traffic. Start with monitoring, inventory routes and consumers, then enforce narrow requirements with explicit testing for headless, ecommerce, webhook, mobile, and automation workflows.

Aegisify API Shield

Protect the API by Route, Identity, Contract, and Evidence

Move beyond one global REST switch with monitoring-first controls that can be tightened around the WordPress endpoints carrying the most risk.