Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Smart Web Security
  • Getting started
    • All guides
    • Address lists
      • Creating a template
      • Adding a template to a profile or rule
      • Managing a template
    • Viewing operations
    • Configuring monitoring
    • Setting up alerts
    • Configuring logs via Smart Web Security
    • Configuring logs via Application Load Balancer
    • Migrating to the new condition format in the API, CLI, and Terraform
    • Overview
    • Security profiles
    • WAF profiles
    • ARL (request limit)
    • Rules
    • Conditions
    • Lists
    • Managing bot traffic
    • Protecting domains
    • Response templates
    • Logging
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • Editing a template
  • Getting template info
  • Deleting a template
  1. Step-by-step guides
  2. Response templates
  3. Managing a template

Managing a response page template

Written by
Yandex Cloud
Updated at September 17, 2026
View in Markdown
  • Editing a template
  • Getting template info
  • Deleting a template

Editing a templateEditing a template

Management console
  1. In the management console, select the folder with the template.

  2. Navigate to Smart Web Security.

  3. In the left-hand panel, select  Response templates.

  4. In the row with the template, click → Edit.

  5. In the window that opens, edit the following parameters:

    • Page name.

    • Description.

    • Response code: One of the standard HTTP response codes for which the client will get a page based on your template.

    • Response format: HTML, JSON, XML, or Custom.

      Each format has a matching HTTP Content-Type header: text/html, application/json, or application/xml.

      To set a custom header, select Custom. You can change the Content-Type for Custom headers.

    • To add an HTTP header, click Add response header and specify its Key (header name) and Value. You can add up to 10 headers per template.

      To delete a header, click next to its row.

    • Response body: Edit the page content the client will get as a response. The response must not exceed 2 KB (about 2,000 UTF-8 characters) in size. Add the content as per the response format you selected while preserving the markup.

    • Add or delete presets in the response body, i.e., the additional parameters the client may get on the response page.

  6. Click Save.

To view the final page on the client side, click View on the template page.

Getting template infoGetting template info

Management console
  1. In the management console, select the folder with the template.
  2. Navigate to Smart Web Security.
  3. In the left-hand panel, select  Response templates.
  4. Select the template.
  5. The Overview page will show the template details.

Deleting a templateDeleting a template

Management console
  1. In the management console, select the folder with the template.

  2. Navigate to Smart Web Security.

  3. In the left-hand panel, select  Response templates.

  4. In the row with the template, click → Delete.

    You cannot delete a template added to a profile or rule. If you attempt to delete such a template, you will get a list of objects that use it. Navigate to each object’s settings and select a different template.

Was the article helpful?

Previous
Adding a template to a profile or rule
Next
Rule for captcha
© 2026 Direct Cursus Technology L.L.C.