Sanal_Babu
Jun 10, 2021Nimbostratus
User agent mobile app and mobile browser
I have a requirement to block a mobile application which is having some issues at present (may take sometime to fix) .But the same time, the portal should be accessible from mobile browsers (chrome,mozilla,safari etc) . Below irule was applied but it blocked access for mobile browsers too.
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::header "User-Agent"]] contains Mobileapp_Useragent ] } {
drop
reject
} }
Mobileapp_Useragent data group contains the below
android
iphone
blackberry
windowsphone
Thoughts ?