Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import Tabs from '~/components/tabs/Tabs'
import Code from '~/components/Code/Code.astro'


Implementing rules in your firewall using [Rules Engine](/en/documentation/products/secure/firewall/rules-engine/) will allow you to determine the rules it should execute in specific scenarios.
Use [Rules Engine](/en/documentation/products/secure/firewall/rules-engine/) to define the conditions and behaviors your Firewall executes for each incoming request.

This guide demonstrates the process of creating a rule with a practical example of verifying the existence of a certificate and returning a custom response when there isn't one. This behavior is useful in scenarios such as adjusting your policies to comply with BACEN requirements.
This guide walks you through creating a rule using a practical example: verifying whether a client certificate exists and returning a custom response when it doesn't. This is useful for enforcing mTLS policies, such as those required for BACEN compliance.

:::note
There are different criteria that require different Firewall modules. Make sure you have the [right module](/en/documentation/products/secure/firewall/rules-engine/#criteria) activated to create your rules.
Expand All @@ -40,7 +40,7 @@ To create a rule:
9. In the **Behaviors** section, select **Set Custom Response**.
10. As arguments:
- On **Status Code**, add `401`.
- On **Content Type**, add the content and header description. Example: `application/json`.
- On **Content Type**, define the MIME type of the response body. Example: `application/json`.
- On **Content Body**, pass the message you want to present to users.
11. Click the **Save** button.
</Fragment>
Expand Down Expand Up @@ -88,7 +88,7 @@ curl --request POST \
| `behaviors` | Array that stores objects that define behaviors |
| `criteria` | Array that stores objects that define criteria |

See the [Azion API documentation](https://api.azion.com/) to find out more about criteria and behavior objects.
Refer to the [Azion API documentation](https://api.azion.com/) for details on all available criteria and behavior objects.

2. You'll receive the following response:

Expand Down Expand Up @@ -127,7 +127,7 @@ See the [Azion API documentation](https://api.azion.com/) to find out more about
3. Wait a few minutes for the changes to propagate.

:::tip
Check the [Azion API documentation](https://api.azion.com/) to know more about all features available via API.
Check the [Azion API documentation](https://api.azion.com/) for details on all features available via API.
:::
</Fragment>

Expand Down