Fortinet black logo

CLI Reference

waf url-access-parameter

waf url-access-parameter

Use this command to add URL access parameter rules. It should be referred in an URL access rule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wafgrp area. For details, see Permissions.

Syntax

config waf url-access-parameter

edit waf url-access-parameter

config waf url-access-parameter-list

edit <index>

set argument-name <string>

set data-type

next

end

next

end

Variable Description Default

"<url-access-parameter-rule_name>"

Enter the name of a new or existing rule. The maximum length is 63 characters.

To display the list of existing rules, enter:

edit ?

No default.

argument-name <string>

Depending on your selection in Type, enter either:

  • The literal name that the HTTP request must contain in order to match the rule.
  • A regular expression.

To create and test a regular expression, click the >> (test) icon. This opens the Regular Expression Validator window where you can fine-tune the expression. For details, see Regular expression syntax.

No default.

data-type

Specify the data type of the parameter value.

No default.

waf url-access-parameter

Use this command to add URL access parameter rules. It should be referred in an URL access rule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wafgrp area. For details, see Permissions.

Syntax

config waf url-access-parameter

edit waf url-access-parameter

config waf url-access-parameter-list

edit <index>

set argument-name <string>

set data-type

next

end

next

end

Variable Description Default

"<url-access-parameter-rule_name>"

Enter the name of a new or existing rule. The maximum length is 63 characters.

To display the list of existing rules, enter:

edit ?

No default.

argument-name <string>

Depending on your selection in Type, enter either:

  • The literal name that the HTTP request must contain in order to match the rule.
  • A regular expression.

To create and test a regular expression, click the >> (test) icon. This opens the Regular Expression Validator window where you can fine-tune the expression. For details, see Regular expression syntax.

No default.

data-type

Specify the data type of the parameter value.

No default.