Description of protocol validation settings fields

Descriptions of protocol validation settings fields are presented in table section 9.

Table 9 – Protocol validation settings

Field

Description

Options

Header Regular Expression

Regular expression that each transaction header must match

Regular expression input field

Header validators

Checking header values for compliance with specified parameters

  • The “Content-type header validator” checkbox enables or disables checking the “Content-type” header for compliance with the specified parameters:

    • Allowed MIME Types - Specifies a list of allowed media types (also known as Multipurpose Internet Mail Extensions or MIME types) that describes the nature and format of the document, file, or set of bytes. MIME types are defined according to the RFC 6838 specification

    • Valid parameter values – a regular expression input field that must match the values of the “Content-type” header parameters

    • Valid parameter names – input field for valid names for “Content-type” header parameters

    • Acceptable encodings – input field for acceptable encodings of the “Content-type” header

  • The “Content-length header validator” checkbox enables or disables checking whether the size of the “body” header corresponds to the size specified in the “Content-length” header

  • The “Transfer-encoding header validator” checkbox enables or disables checking the “Transfer-encoding” header for compliance with the specified parameters:

    • Allow requests with block-by-block (chunked) body transmission - when you click on this text, a checkbox appears that turns on or off the prohibition on block-by-block text transmission

    • Allow query compression – when you click on this text, a checkbox appears that allows or denies query compression

  • The “Hostname Validator” checkbox enables or disables checking the “host” header for compliance with the specified parameters:

    • Regular expression to check valid names - regular expression input field

  • The “Range header validator” checkbox enables or disables checking the “Range” header for compliance with the specified parameters:

    • Maximum number of intervals in the Range header – input field for the maximum number of intervals in the Range header (for example, if the maximum number of intervals in the Range header in this parameter is set to 2, then the transaction with the header “Range: bytes=200-1000, 2000-6576, 19000-” will be blocked)

Maximum header length

Field for entering the maximum length of headings

Input field for the numeric value of the maximum header length (if at least one of the transaction headers is longer than the specified one, then the transaction will be blocked)

Start Line Validation

Checking the values of the “url” “method” headers for compliance with the specified parameters

  • Allow requests of the type ‘OPTIONS’ - when you click on this text, a checkbox appears that allows or denies requests with the “OPTIONS” method

  • Characters allowed in the URL path, in addition to the standard set (A-Za-z0-9-._/) – input field for characters allowed for use in the “URL” header in addition to the standard set

  • Maximum length of URL parameters (0 - no limit) – input field for the numeric value of the maximum length of the “URL” header parameters

  • Do not allow URLs in absolute form - when you click on this text, a checkbox appears that allows or denies requests in absolute form (example URL in absolute form: scheme://server/path/resource, where scheme is the site access scheme; server is the name of the computer on which the resource is located; path is the sequence of directories leading to the target object; resource is usually the name of the file)

  • Allow incorrect URL encoding in a URL – when you click on this text, a checkbox appears that allows or denies requests with incorrect URL encoding (for example, if you allow the use of incorrect URL encoding, transactions with characters not encoded in UTF-8 will be skipped)

  • Allowed methods – field for entering the names of allowed methods

  • Maximum path length (0 - no limit) – input field for the path part of the request

  • Characters allowed in URL parameters, in addition to the standard set (A-Za-z0-9-._/) – input field for characters that will be allowed for use in URL parameters in addition to the standard set (A-Za-z0-9-._/)

Replacing some characters with hyphens (-) in header names

A checkbox that enables forced replacement of characters entered in the “Characters to be replaced with a hyphen (-) in header names” field with a hyphen

–

Characters to be replaced with hyphens (-) in header names

Input field for characters that must be replaced with a hyphen. Appears only if the checkbox in the item “Replacing some characters with hyphens (-) in header names” is enabled

–

Allowed headers

Input field for headers allowed for use in requests

–

Allowed header patterns

Regular expression input field for specifying headers that are allowed to be used in queries

–

Regular expression to check header values

Regular expression input field that the header values must match

–

Allow duplicate headers

Input field for headings that are allowed to be duplicated in requests

–

Maximum number of titles

Input field for the maximum number of headers in a request

–

Note

changes made to protocol validation can be saved both for the application and for the entire tenant\installation; to do this, you need to select the appropriate item in the pop-up window that appears after clicking the “Save changes” button.