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

Warning

Deprecated in BIG-IP Next v20.0.1


Syntax

BOTDEFENSE::cs_possible

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
     }
 }

Change Log

  • Introduced: BIGIP-12.1
  • Deprecated: BIGIP-20.0.1

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.