---
title: "ezgh waf"
description: "WAFs: inspect web requests to load balancers, and block attacks."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh waf

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh waf <command>
```

A WAF inspects the requests a load balancer's http and https listeners receive, and blocks the ones its rules match; tcp and tls listeners aren't inspected. Its rules of your own run first, top to bottom: they match the client's address, network (ASN) or country, or a request's path, query, method, a header, a cookie or the first 16 KB of a request body, and allow, block, log or rate limit it per client address. Then the managed rule sets it runs, which EZGH keeps up to date (`ezgh waf managed-rule-sets list`). A WAF or managed rule set in log mode (Log only) records what it would block, and blocks nothing.

Attach a WAF with `ezgh lb load-balancers update <load-balancer> --waf <waf_…>`.

Everything is in a project (`--project`, `EZGH_PROJECT` or the profile's). &lt;waf&gt; is its ID (waf\_…) or UUID.

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh waf create`](/cli/reference/waf-create) | Create a WAF |
| [`ezgh waf delete`](/cli/reference/waf-delete) | Delete a WAF |
| [`ezgh waf get`](/cli/reference/waf-get) | Show a WAF |
| [`ezgh waf list`](/cli/reference/waf-list) | List the project's WAFs |
| [`ezgh waf managed-rule-sets`](/cli/reference/waf-managed-rule-sets) | Managed rule sets |
| [`ezgh waf rules`](/cli/reference/waf-rules) | A WAF's rules of your own |
| [`ezgh waf update`](/cli/reference/waf-update) | Change a WAF |

Source: https://docs.ezghcloud.com/cli/reference/waf/index.mdx
