WAF:block(integer)
Blocks the current session's client IP. Specify the period of the block in seconds as an integer (Range: 1-2147483647, default = 3600).
Syntax
WAF:block(integer);
Arguments
| Name | Description |
|---|---|
|
int |
An integer ranging from 1-2147483647. |
Events
Applicable in all WAF events:
-
WAF_REQUEST_BEFORE_SCAN
-
WAF_RESPONSE_BEFORE_SCAN
-
WAF_REQUEST_ATTACK_DETECTED
-
WAF_RESPONSE_ATTACK_DETECTED
Example
when WAF_REQUEST_ATTACK_DETECTED {
debug("test WAF_REQUEST_ATTACK_DETECTED\n")
WAF:block(3600)
}
Supported Version
FortiADC version 6.2.x and later.