ltm rule command BOTDEFENSE cs possible
iRule(1) BIG-IP TMSH Manual iRule(1)
BOTDEFENSE::cs_possible
Returns whether it is possible for Bot Defense to take a client-side
action.
SYNOPSIS
BOTDEFENSE::cs_possible
DESCRIPTION
Returns "true" or "false" based on whether it is possible to take one
of the client-side actions (browser challenge, or CAPTCHA challenge).
Certain characteristics of a request makes it impossible to respond
with a browser or CAPTCHA challenge, in which case "false" is returned.
Setting to a client-side action with BOTDEFENSE::action, while the
value of BOTDEFENSE::cs_possible is "false", will fail.
Syntax
BOTDEFENSE::cs_possible
RETURN VALUE
Returns a boolean value (0 or 1), whether taking a client-side action
is possible.
VALID DURING
BOTDEFENSE_REQUEST, BOTDEFENSE_ACTION
EXAMPLES
# EXAMPLE: Prevent blocking of requests that cannot be responded with a
# client-side challenge.
when BOTDEFENSE_ACTION {
if { ([BOTDEFENSE::action] eq "tcp_rst") &&
(not [BOTDEFENSE::cs_possible])} {
BOTDEFENSE::action allow
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-12.1 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)