F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Brandon's avatar
Brandon
Icon for Cirrostratus rankCirrostratus
Jan 29, 2019
Solved

iRule error

When i try to save the IRULE it gives me the following error. Trying to block all non app traffic to vip combined with using a SDK on ASM   Here are the errors   1070151:3: Rule [/Common/ASM_SD...
  • Andrew-F5's avatar
    Jun 10, 2019

    The 'BOTDEFENSE::reason' is only valid in the event 'BOTDEFENSE_ACTION' so your iRule would have to look like the following:

    when BOTDEFENSE_ACTION { 
    	if { ([BOTDEFENSE::action] eq "allow") && (not ([string tolower [BOTDEFENSE::reason]] starts_with "valid mobile application cookie")) } {
    		BOTDEFENSE::action tcp_rst
    	}	
    }

    Documentation: Clouddocs > BIG-IP API Reference > BOTDEFENSE::reason