Managing a response page template
Editing a template
-
In the management console
, select the folder with the template. -
Go to Smart Web Security.
-
In the left-hand panel, select Response templates.
-
In the row with the template, click
and select Edit. -
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, orapplication/xml.For a custom header, select Custom. For the Custom format, you can change the Content-Type.
-
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.
-
-
To view the final page on the client side, click Preview at the top right.
-
Click Save.
Getting template info
- In the management console
, navigate to the folder with the template. - Go to Smart Web Security.
- In the left-hand panel, select Response templates.
- Select the template.
- The Overview page will show the template details.
Deleting a template
- In the management console
, select the folder with the template. - Go to Smart Web Security.
- In the left-hand panel, select Response templates.
- In the row with the template, click
and select 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.