Docs
Skip to content

Firewall

Start with Firewall_

Create your first Appwrite Firewall rule and see how it affects project API traffic.

2 min read

Raw

In this quick start you create a deny rule on the project API, send a request that it blocks, and find that request in the traffic overview.

Open Firewall

  1. Sign in to Appwrite Cloud.
  2. Open a project.
  3. Open Firewall in the sidebar.

Create a deny rule

Create firewall rule wizard with a deny rule
Create firewall rule wizard with a deny rule

  1. Click Create rule.
  2. Enter a Rule name (for example Deny staging admin path).
  3. Leave Resource type set to API so the rule applies to project API traffic (/v1/...).
  4. Under conditions, set:
    • Attribute: Path
    • Operator: Starts with
    • Value: a path you want to block (for example /v1/account)
  5. Under Then, choose Deny.
  6. Keep Priority at 100.
  7. Leave Enabled on.
  8. Review the impact preview in the sidebar, then click Create rule.

Confirm the rule

Firewall rules list with the new deny rule
Firewall rules list with the new deny rule

  1. On the Firewall page, make sure the resource selector above the rules list shows API.
  2. Find your rule in the list. It should show Deny and its status toggle should be on.

To change the rule later, open its actions menu and choose Update.

Test the rule

Firewall never blocks the Console, so send the request with a client SDK or an API key instead.

Bash
curl -i https://cloud.appwrite.io/v1/account \
-H "X-Appwrite-Project: <PROJECT_ID>"

The response is 403, and its headers name the rule that stopped it:

Plain text
HTTP/2 403
x-appwrite-waf-rule: <RULE_ID>
x-appwrite-waf-action: deny

See it in traffic overview

Open Firewall in your project. The chart above the rules list shows requests that reached your project (Passed) alongside each Firewall outcome. The Denied series rises as matching requests arrive.

See Traffic overview for metrics and date ranges, and Actions for what each outcome means.

Next steps

The guides cover country blocks, IP allowlists, rate limits, challenges, and redirects.

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.