[Yandex Cloud documentation](../../index.md) > [Yandex Smart Web Security](../index.md) > [Step-by-step guides](index.md) > Response templates > Adding a template to a profile or rule

# Adding a response page template to a profile or rule

You can add a response page template to a security or ARL profile, or to individual rules in any of those profiles.

## Adding a template to a profile {#template-to-profile}

The profile template is displayed when this profile is blocked by any rule. If you select another template for a particular profile, the selected template will be used. If no template is selected for a profile or rule, the default template will be used.

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) containing the security or ARL profile.
  1. Navigate to **Smart Web Security**.
  1. In the left-hand panel, select **Security profiles** or **ARL profiles**.
  1. In the row with the profile you need, click ![options](../../_assets/console-icons/ellipsis.svg) and select **Edit**.
  1. From the **Response page template** list, select an existing template or [create a new one](template-create.md).
  1. Click **Save**.

{% endlist %}

## Adding a template to a rule {#template-to-rule}

[Rules](../concepts/rules.md) you can assign a page template to:

* Security profile rules:
  * **Base** with the **Deny** action.
  * **Smart Protection** with the **Full protection** or **API protection** action.
  * **Web Application Firewall** with the **Full protection** or **API protection** action.
* ARL profile rules with the **Block requests exceeding the limit** or **Temporarily block all requests** actions.

Additionally, you can customize the SmartCaptcha challenge window. Do it by [creating](../../smartcaptcha/operations/create-captcha.md) a new CAPTCHA or modifying an existing one linked to the security profile.

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) containing the security or ARL profile.
  1. Navigate to **Smart Web Security**.
  1. In the left-hand panel, select **Security profiles** or **ARL profiles**.
  1. Select the profile containing the rule of interest.
  1. Next to the rule, click ![options](../../_assets/console-icons/ellipsis.svg) and select **Edit**.
  1. From the **Response page template** list, select an existing template or [create a new one](template-create.md).
  1. Click **Save**.

{% endlist %}

#### Useful links {#see-also}

* [Adding a rule to a security profile](rule-add.md)
* [Editing a rule in a security profile](rule-update.md)
* [Connecting a security profile to a resource](host-connect.md)
* [Deleting a security profile](profile-delete.md)