Attack mode_
Turn on Attack mode in Appwrite Firewall to challenge every visitor to a site until you turn it off.
3 min read
Attack mode is a one-click challenge for the site selected in Firewall. Use it during a traffic spike or an abuse incident to put a proof-of-work challenge in front of every visitor.
Attack mode is available only for Sites. It does not apply to the project API or to Functions. Select a site in the Firewall resource selector to see the Attack mode button.
Turn it on
The first time you turn Attack mode on, Appwrite creates a rule. The project needs a free slot under its plan limit.
Attack mode runs at priority 0, ahead of bypass rules at the wizard default of 10. If you rely on bypass rules to allowlist trusted traffic, give them a negative priority before you turn Attack mode on.
- Open Firewall in your project.
- Select the site you want to protect.
- Click Attack mode.
- Confirm Turn on.
While Attack mode is on, a banner appears under the Firewall header: Attack mode is on. Every visitor is challenged.
What it creates
Appwrite creates (or re-enables) a Challenge rule named Attack mode on that site. The rule:
- Matches Path Starts with
/, so it matches every request to the site - Uses priority
0, so it runs before every rule at the wizard default - Uses difficulty
3and a TTL of1800seconds
The rule appears in the site's rules list like any other rule.
Turn it off
Click Attack mode again, or Turn off on the banner, and confirm. Appwrite disables the rule rather than deleting it, so you can turn it back on later. The rule stays in the project and counts toward plan limits.
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.