---
title: "Firewall"
description: "Protect project APIs, Functions, and Sites with Appwrite Firewall. Create rules to deny, bypass, rate limit, redirect, or challenge matching traffic from the Console."
canonical: "https://appwrite.io/products/firewall"
---

# Control traffic before it reaches your app

Define project rules that match the request properties you care about, then deny, bypass, rate limit, redirect, or challenge traffic before it hits your API, Functions, or Sites.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View docs](https://appwrite.io/docs/products/firewall)

Incoming

Your app

Firewall

* 1allow-officeip in 10.0.0.0/8Bypass
* 2block-scrapersuser\_agent contains "curl"Deny
* 3api-rate-limitpath starts\_with "/v1"Rate limit
* 4eu-redirectcountry == "FR"Redirect

1.24MRequests

18.4KBlocked

2.1KRate limited

## Deny, bypass, rate limit, redirect, or challenge

Every rule applies one action when conditions match. Deny abusive traffic, bypass trusted clients, throttle per IP, redirect to maintenance URLs, or challenge suspicious requests before they continue.

One action per matching rule. Evaluation stops at the first match.

403

#### Deny

Reject matching requests before they reach your project.

Continue

#### Bypass

Allow the request and skip later Firewall rules.

429

#### Rate limit

Throttle matching requests that exceed a per-IP quota.

3xx

#### Redirect

Send matching clients to another location with a 3xx status.

Challenge

#### Challenge

Present a challenge before allowing suspicious clients through.

[Actions docs](https://appwrite.io/docs/products/firewall/actions)

## Match on rich request attributes

Build rules from the request properties that matter to your app. Combine conditions so a rule only fires when every filter matches.

[Conditions docs](https://appwrite.io/docs/products/firewall/conditions)

Incoming

POST/v1/account/sessions

IP address

203.0.113.10

Country

DE

User agent

python-requests/2.31

Pathstarts with`/v1/account`

Methodequals`POST`

User agentcontains`python-requests`

Deny

403

Every condition on a rule must match before the action runs.

## Scope rules to API, Functions, or Sites

Apply policies to the project API, a specific Function, or a specific Site. Keep production APIs locked down while preview sites and health checks stay reachable.

[Scopes docs](https://appwrite.io/docs/products/firewall/scopes)

Resource scope

Deny account mutations

`POST /v1/account/*`

DenyAPI

Choose where the rule evaluates matching traffic.

API

Selected

Project REST and GraphQL endpoints.

403

`project`

Functions

A specific Function execution endpoint.

200

`fn_checkout`

Sites

A specific Site deployment hostname.

200

`site_storefront`

## Priority decides the first match

Lower priority numbers evaluate first. Place bypass allowlists ahead of broader deny, rate limit, or challenge rules so trusted traffic skips the rest of the chain.

[Priority docs](https://appwrite.io/docs/products/firewall/priority)

Incoming

GET /v1/databases 10.0.4.21

\-10

Office IP allowlist

Bypass

`ip == 10.0.4.21`

First match

Your app

0

Deny account mutations

Deny

`path starts_with /v1/account`

Skipped

10

Rate limit public API

Rate limit

`path starts_with /v1`

Skipped

Lower numbers evaluate first. The first match stops the chain.

## Preview impact before you enable

Estimate how much recent traffic a draft rule would affect, then refine conditions before you turn it on.

[Impact preview docs](https://appwrite.io/docs/products/firewall/monitor#impact-preview)

Rate limit public API

Estimated impact

Draft

`path starts_with /v1` `method == POST`

Enable rule

Matched

3,35215.6%

Total traffic

Matched by rule

Matched requests over timeLast 24 hours

## Monitor denied, limited, redirected, and challenged traffic

Track request volume alongside denied, rate-limited, redirected, and challenged outcomes on the Firewall page. Confirm policies after enablement without leaving the Console.

29,840requests+12% vs previous period

Last 24 hours[Monitor docs](https://appwrite.io/docs/products/firewall/monitor)

Passed

26,883+8%

Denied

1,667+18%

Challenged

665+6%

Rate limited

517\-3%

Redirected

108+2%

Block rate

7.3%+4%

Redirected

Rate limited

Challenged

Denied

Passed

## FAQ

### 

Firewall rules run on Appwrite Cloud before traffic reaches your project resources. Scope a rule to the project API, a specific Function, or a specific Site. Console traffic is never blocked, so you can keep managing rules even when deny or rate limit policies are active.

[Firewall overview](https://appwrite.io/docs/products/firewall)[Resource scopes](https://appwrite.io/docs/products/firewall/scopes)

### 

Each matching rule applies one action: Deny returns 403, Bypass allows the request and skips later rules, Rate limit throttles per client IP with a 429 when over quota, Redirect sends clients to another location with a 3xx status, and Challenge verifies suspicious clients before allowing them through. There is no separate Allow action. Use Bypass to allowlist traffic that should skip later deny, rate limit, or challenge rules.

[Actions](https://appwrite.io/docs/products/firewall/actions)

### 

Every rule needs at least one condition. All conditions on a rule must match (AND). Rules evaluate by priority (lower numbers first). The first matching enabled rule decides the outcome and stops evaluation.

[Conditions](https://appwrite.io/docs/products/firewall/conditions)[Priority](https://appwrite.io/docs/products/firewall/priority)

### 

Yes. While creating a rule, the Console estimates how many recent usage events would match your current conditions for the selected resource scope and date range. Use that preview to tighten filters before you enable the rule, then confirm outcomes in traffic overview.

[Quick start](https://appwrite.io/docs/products/firewall/quick-start)[Monitor traffic](https://appwrite.io/docs/products/firewall/monitor)

### 

The Firewall page chart summarizes Passed request volume alongside Denied, Rate limited, Redirected, and Challenged series for the selected date range. Bypass matches and under-quota rate limit matches allow traffic without publishing a Firewall outcome metric. Use the overview with your rules list to verify policies after enablement.

[Monitor traffic](https://appwrite.io/docs/products/firewall/monitor)

### 

Firewall is available on Appwrite Cloud. Rule limits depend on your organization plan. Disabled rules still count toward plan limits but are not evaluated.

[Plan limits](https://appwrite.io/docs/products/firewall/rules#plan-limits)[Pricing](https://appwrite.io/pricing)

## Start protecting with Firewall

Create your first deny, bypass, rate limit, redirect, or challenge rule from the Console and preview impact before you enable it.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View pricing](https://appwrite.io/pricing)

## Explore Appwrite

Modular backend services that share the same project, permissions model, and console.

[AuthEmail, OAuth, SMS, MFA, teams, and sessions.](https://appwrite.io/products/auth)

[DatabasesManaged PostgreSQL, TablesDB, DocumentsDB, VectorsDB, MySQL.](https://appwrite.io/products/databases)

[PostgreSQLManaged PostgreSQL with pooling, replicas, and PITR.](https://appwrite.io/products/postgres)

[StorageUpload, transform, and deliver files on CDN.](https://appwrite.io/products/storage)

[FunctionsAPIs, cron jobs, and event handlers at scale.](https://appwrite.io/products/functions)

[MessagingEmail, SMS, and push with topics and targets.](https://appwrite.io/products/messaging)

[RealtimeLive events, channels, and presence.](https://appwrite.io/products/realtime)

[SitesStatic, SSR, and CSR deploys from Git.](https://appwrite.io/products/sites)

[DomainsSearch, buy, transfer, and manage domains.](https://appwrite.io/domains)

[FirewallProject rules to deny, rate limit, and redirect traffic.](https://appwrite.io/products/firewall)

### 

### 

### 

### 

### 

### 

[](https://github.com/appwrite)[](https://x.com/appwrite)[](https://www.linkedin.com/company/appwrite/)[](https://www.instagram.com/appwrite.io/)[](https://appwrite.io/discord)[](https://apwr.dev/dailydev)

[SOC 2 Type II Certified](https://appwrite.io/docs/advanced/security)

© 2026 Appwrite
