---
id: "naxsi"
type: "component"
kind: "waf"
provider: "default"
category: "security"
docs: "https://github.com/wargio/naxsi/wiki"
url: "https://localhost:3000/catalogue/components/naxsi"
---

# NAXSI

nginx web application firewall using a small core rule set plus learned whitelists.

| | |
|---|---|
| Provider | [default](https://localhost:3000/catalogue?provider=default) |
| Kind | [Web application firewall](https://localhost:3000/catalogue/kinds/waf) |
| Category | Security |
| Official docs | [https://github.com/wargio/naxsi/wiki](https://github.com/wargio/naxsi/wiki) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `botProtection` | boolean | — | no | — | **false** |
| `customRuleCount` | integer | — | no | — | inherited |
| `learningMode` | boolean | — | no | true | inherited |
| `managed` | boolean | — | no | false | **false** |
| `managedRuleSet` | string | — | no | — | **"naxsi-core-rules"** |
| `mode` | enum | `detection`, `prevention`, `off` | no | — | inherited |
| `model` | enum | `whitelist`, `blacklist` | no | "whitelist" | inherited |
| `rateLimiting` | boolean | — | no | — | **false** |
| `whitelistCount` | integer | — | no | — | inherited |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 13

- [Web Application Firewall](https://localhost:3000/catalogue/components/alibaba-waf.md) `alibaba-waf` — alibabacloud
- [AWS WAF web ACL](https://localhost:3000/catalogue/components/aws-waf.md) `aws-waf` — aws
- [AWS WAF Classic](https://localhost:3000/catalogue/components/aws-waf-classic.md) `aws-waf-classic` — aws
- [Azure Web Application Firewall](https://localhost:3000/catalogue/components/azure-web-application-firewall.md) `azure-web-application-firewall` — azure
- [Firewall for AI](https://localhost:3000/catalogue/components/cloudflare-firewall-for-ai.md) `cloudflare-firewall-for-ai` — cloudflare
- [Cloudflare WAF](https://localhost:3000/catalogue/components/cloudflare-waf.md) `cloudflare-waf` — cloudflare
- [Coraza](https://localhost:3000/catalogue/components/coraza.md) `coraza` — default
- [Imperva Application Security](https://localhost:3000/catalogue/components/imperva.md) `imperva` — default
- [ModSecurity](https://localhost:3000/catalogue/components/modsecurity.md) `modsecurity` — default
- [Generic web application firewall](https://localhost:3000/catalogue/components/waf.md) `waf` — default
- [Google Cloud Armor](https://localhost:3000/catalogue/components/google-cloud-armor.md) `google-cloud-armor` — gcp
- [reCAPTCHA Enterprise](https://localhost:3000/catalogue/components/google-recaptcha-enterprise.md) `google-recaptcha-enterprise` — gcp
- [Web Application Firewall](https://localhost:3000/catalogue/components/oci-waf.md) `oci-waf` — oci

## Use it in a design

```yaml
nodes:
  - { id: "naxsi", component: "naxsi" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# NAXSI: nginx WAF module. The wiki describes it as a "DROP-by-default firewall" driven by
# a small core rule file plus whitelists, with an intensive learning phase recommended
# before enforcement, so a fresh deployment runs in learning rather than blocking.
schemaVersion: "1"
type: "component"
id: "naxsi"
kind: "waf"
provider: "default"
docs: "https://github.com/wargio/naxsi/wiki"
defaults:
  managed: false
  managedRuleSet: "naxsi-core-rules"
  botProtection: false
  rateLimiting: false
properties:
  learningMode:
    type: "boolean"
    default: true
  model:
    type: "enum"
    values: ["whitelist", "blacklist"]
    default: "whitelist"
  whitelistCount:
    type: "integer"
```

Human page: https://localhost:3000/catalogue/components/naxsi
