waf machine-learning
Use this command to enable the machine learning feature and configure its settings.
Syntax
config waf machine-learning url-replacer-rule
set type {pre-defined | custom-defined}
set url "<url_str>"
set new-param "<new-param_str>"
next
end
config waf machine-learning url-replacer-policy
config rule list
edit rule-id "<rule_id>"
set plugin-name "<plugin-name_str>"
next
end
next
end
Variable | Description | Default |
Specify a unique name that can be referenced by other parts of the
configuration. The name can be up to 63 characters long with no space or special character. |
No default. |
|
Select either of the following:
|
No default. | |
If you have selected Predefined in the Type field above, then you must click the
down arrow and select either of the following from the list menu:
|
No default. | |
Enter a regular expression, such as (^/[^/]+)/(.*), matching all and only the
URLs to which the URL replacer should apply. The URL path can be up to 256
characters long. The pattern does not require a backslash (/). However, it must at least match URLs that begin with a backslash as they appear in the HTTP header, such as /index.html. Do not include the domain name, such as www.example.com. |
No default. | |
Enter either a literal URL, such as /index.html, or a regular expression with a back-reference (such as $1) defining how the URL will be interpreted. The new URL cab be up to 256 characters long. | No default. | |
Enter either the parameter’s literal value, such as user1, or a back-reference (such as $0) defining how the value will be interpreted. | No default. | |
Type either the parameter’s literal name, such as username, or a backreference (such as $2) defining how the parameter’s name will be interpreted in the auto-learning report. You can use up to 256 characters. | No default. | |
Specify a unique name that can be referenced by other parts of the
configuration. The name can be up to 63 characters long with no space or special character. |
No default. | |
Select the sequence number of the URL Replacer Rules | No default. | |
Select the type URL_Replacer. | No default. | |
Enter the plugin name. | No default. |