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 that initiate a response
       (browser challenge, or CAPTCHA challenge, or device id collection) or send browser challenge in response. Certain
       characteristics of a request make it impossible to respond with a browser verification or CAPTCHA challenge or device id,
       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							    2022-04-12							  iRule(1)