09-Aug-2023 10:34
dears
i need a way to choose multi dos profiles to single virtual server according to user agent
as ex: if user agent mobile dos profile if
when HTTP_REQUEST {
if {[set ua [string tolower [HTTP::header User-Agent]]] contains "iphone" || $ua contains "ipad" || $ua contains "android"} {
#This client is an iPhone, iPad or an Android device
choose dos profile with specific configuration
and if browser choose another dos profile with specific configuration
how can i create this one
09-Aug-2023 11:42
Hi mohamedhussien,
iRule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*iphone*" -
"*ipad* " -
"*android* " {
DOSL7::enable dospolicy1
}
default {
DOSL7::enable dospolicy2
}
}
}
https://clouddocs.f5.com/api/irules/DOSL7__enable.html
LTM Policy:
09-Aug-2023 23:03
hello thanks for your reply you mean that i can use only irule or using only ltm policy or both if available can you give me ltm policy detailed
28-Aug-2023 14:11
@mohamedhussien - If your post was solved it would be helpful to the community to select *Accept As Solution*.
Thanks for being part of our community.