ltm rule command ASM uncaptchaΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

ASM::uncaptcha
       Overrides the CAPTCHA action.

SYNOPSIS
       ASM::uncaptcha

DESCRIPTION
       Overrides the CAPTCHA action for a request mitigated during a Brute-Force attack.  Consequently, the request
       will be forwarded to the origin server.	If the present request was not supposed to be mitigated by CAPTCHA
       then the command has no effect.

		Syntax

		ASM::uncaptcha

RETURN VALUE
VALID DURING
       ASM_REQUEST_DONE, ASM_REQUEST_VIOLATION

EXAMPLES
	when ASM_REQUEST_DONE {
	    set i 0
	    foreach {viol} [ASM::violation names] {
		if {$viol eq VIOLATION_ILLEGAL_PARAMETER} {
		    set details [lindex [ASM::violation details] $i]
		    set param_name [b64decode [llookup $details "param_data.param_name"]]
		    #remove the bad parameter from the QS - does not work right in all cases, just for illustration!
		    regsub -all "\?.*($param_name=^\&*)" [HTTP::uri] "?" $new_uri
		    HTTP::uri $new_uri
		    ASM::uncaptcha
		}
		set i [expr {$i+1}]
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.5.0
		--First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)