Fortinet black logo

CLI Reference

config security waf parameter-validation-rule

config security waf parameter-validation-rule

The command is used to validate input fields in html forms, and supports data type check in parameter validation.

Syntax

config security waf parameter-validation-rule

edit <name>

...

config parameter_validation_rule_element

edit <name>

set is-type-check {enable | disable}

set max-length <integer>

set name <string>

next

end

next

end

is-type-check

Enable or disable type check

integer

Maximum character length of value

name

name value

Example

FortiADC-VM # show security waf parameter-validation-rule

config security waf parameter-validation-rule

edit "1"

set request-url /

set action deny

config parameter_validation_rule_element

edit 1

set name username

set is-type-check enable

set data-type Email

next

end

next

end

config security waf parameter-validation-rule

config security waf parameter-validation-rule

The command is used to validate input fields in html forms, and supports data type check in parameter validation.

Syntax

config security waf parameter-validation-rule

edit <name>

...

config parameter_validation_rule_element

edit <name>

set is-type-check {enable | disable}

set max-length <integer>

set name <string>

next

end

next

end

is-type-check

Enable or disable type check

integer

Maximum character length of value

name

name value

Example

FortiADC-VM # show security waf parameter-validation-rule

config security waf parameter-validation-rule

edit "1"

set request-url /

set action deny

config parameter_validation_rule_element

edit 1

set name username

set is-type-check enable

set data-type Email

next

end

next

end