Forum Discussion
iRule to enable specify bot Defense profile
You can not switch the Bot Defense profile: https://clouddocs.f5.com/api/irules/BOTDEFENSE__enable.html.
BOTDEFENSE::enable accepts no arguments.
Hi Juergen,
Do you mean i need to create the separeate irule for ASM policies and BOTDEFENSE profile as below?
Can provide an example?
irule for bot defense (e.g.)
=======================
when HTTP_REQUEST {
if {[HTTP::host] starts_with "hrweb.abc.om"} {
BOTDEFENSE::enable "/Common/hrweb-bot-defense"
} else {[HTTP::host] starts_with "Infra.abc.com"} {
BOTDEFENSE::enable "/Common/Infra-bot-defense"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
