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 cross-site scripting (XSS) protection work in Aegisify WAF?

Cross-site scripting (XSS) happens when an attacker submits HTML or JavaScript that a vulnerable page later displays to other visitors. The script then runs in their browser, where it can steal sessions, change content, or redirect users.

How Aegisify WAF detects it

The XSS managed category looks for script tags, inline event handlers such as onerror=, javascript: URLs, and encoded variants of those payloads. Request normalization runs first, so URL-encoded, HTML-entity, or split payloads are decoded before signatures are checked.

Where to configure it

Aegisify WAF → WAF Settings → Managed Protection → Cross-site scripting. The category is on by default with a hit threshold of 1.

Common false-positive sources

Some legitimate WordPress traffic contains HTML by design:

  • Page builders and the block editor saving content through the REST API.
  • Contact or ticket forms that accept code snippets.
  • Admin-side settings screens that store HTML.

Logged-in editors saving content are expected traffic. If the logs show those saves being flagged, create a narrow endpoint policy for the exact route (for example, a specific REST endpoint) rather than disabling XSS protection everywhere.

Defense in depth

Pair WAF protection with output escaping in your theme and plugins and a Content Security Policy. Aegisify Shield includes a CSP builder and security headers that limit what injected scripts can do even if one slips through.

Related: SQL injection protection, Sensitivity mode.

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

Find this article interesting, please share.