# Firewall and WAF guides

This section holds the guides and tutorials on Firewall and WAF.

- [Apply a WAF rule set to a specific cookie](/en/documentation/guides/application-security/firewall-and-waf/waf-rules-for-specific-cookie.md): Run two WAF rule sets on one Firewall, and score requests carrying a chosen cookie against the rule set that holds an exception.
- [Create a Firewall rule](/en/documentation/guides/application-security/firewall-and-waf/work-with-rules-engine.md): Add a rule to the Rules Engine of a Firewall from Azion Console, the Azion CLI, or the API, and confirm that it denies a request.
- [Check or change the WAF mode](/en/documentation/guides/application-security/firewall-and-waf/how-to-check-your-waf-mode.md): Read and change the mode of the Set WAF behavior that applies a WAF rule set, from Azion Console or the API.
- [Create a WAF exception](/en/documentation/guides/application-security/firewall-and-waf/configure-waf-allowed-rules.md): Exempt one internal rule from scoring one part of a request, on the path that produces a false positive, from Azion Console, the CLI, or the API.
- [Set a Firewall's main settings](/en/documentation/guides/application-security/firewall-and-waf/firewall-configure-main-settings.md): Turn WAF, Network Shield, or Functions on or off on a Firewall from Azion Console, the Azion CLI, or the API, and rename it or turn on Debug Rules.
- [Create and apply a WAF rule set](/en/documentation/guides/application-security/firewall-and-waf/create-waf-rule-set.md): Create a WAF rule set with the threat families and sensitivity you choose, then apply it to the requests of a Firewall with a Set WAF behavior.
- [Find the WAF score of a blocked request](/en/documentation/guides/application-security/firewall-and-waf/how-to-find-waf-score.md): Read which internal rules a refused request matched, and what each threat family scored, from Real-Time Events or the GraphQL API.
- [Instantiate a function on a firewall](/en/documentation/guides/application-security/firewall-and-waf/instantiate-functions.md): Bind a function to a firewall from Azion Console or the Azion API, name the instance, and pass its Args in JSON.
- [Tune a WAF rule set](/en/documentation/guides/application-security/firewall-and-waf/tune-waf.md): Read the requests a rule set matched in the Tuning tab, then turn the legitimate ones into exceptions.
- [Stream WAF events to a SIEM](/en/documentation/guides/application-security/firewall-and-waf/integrate-siems.md): Create a stream that sends the requests WAF analyzed to your SIEM, in Azion Console or with the Azion API, and confirm the delivery.
- [Move deprecated rule sets to a Firewall](/en/documentation/guides/application-security/firewall-and-waf/how-to-update-your-firewall.md): Rebuild each setting of a deprecated Firewall rule set as a rule of a Firewall in Azion Console, then remove the rule set from your Applications.
- [Mitigate CVE-2025-29927 in Next.js](/en/documentation/guides/application-security/firewall-and-waf/mitigate-cve-2025-29927-nextjs.md): Strip the x-middleware-subrequest header with a Rules Engine rule on Azion Applications, so a crafted request cannot skip Next.js middleware.
- [Set a Firewall on a Workload](/en/documentation/guides/application-security/firewall-and-waf/firewall-protect-your-domain.md): Set an existing Firewall on the deployment of a Workload from Azion Console or the Azion CLI, so that it inspects the requests to its domains.
- [Exempt query string values from one WAF rule](/en/documentation/guides/application-security/firewall-and-waf/exempt-query-parameter.md): Create a WAF exception that stops one internal rule scoring the query string values on one path, from Azion Console, the Azion CLI, or the API.
- [Exempt request headers from one WAF rule](/en/documentation/guides/application-security/firewall-and-waf/exempt-request-header.md): Create a WAF exception that stops one internal rule scoring the request headers on one path, from the API, with the condition that takes effect.
- [Raise the sensitivity of one threat family](/en/documentation/guides/application-security/firewall-and-waf/raise-one-threat-family.md): Set a higher sensitivity on one WAF threat family from the API, and keep the other seven where they are.
- [Read the score of a blocked request](/en/documentation/guides/application-security/firewall-and-waf/read-block-score.md): Query Real-Time Events for the internal rules that matched a request and the score each threat family gave it.
- [Apply a WAF rule set from azion.config.js](/en/documentation/guides/application-security/firewall-and-waf/config-file-binding.md): Declare a Firewall and the rule that applies a WAF rule set in azion.config.js, and create both with the Azion CLI.
- [Apply WAF and a rate limit to one path](/en/documentation/guides/application-security/firewall-and-waf/apply-waf-and-rate-limit-to-one-path.md): Create one Firewall rule that applies a WAF rule set to the requests to a path and caps the rate of each client on it.
- [Protect an API with Firewall and WAF](/en/documentation/guides/application-security/firewall-and-waf/protect-an-api-with-firewall-and-waf.md): Put a Firewall with a WAF rule set in front of an API path, and watch it block a SQL injection while normal requests pass.
