Forum Discussion
Brandon
Jan 29, 2019Cirrostratus
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...
- 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
Andrew-F5
Jun 10, 2019Employee
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects