Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

yosry92_331999's avatar
yosry92_331999
Icon for Altostratus rankAltostratus
Jan 15, 2018

http agent irule

i want to make an irule that allow only ios & android only to access application can someone help me with that??

 

1 Reply

  • this code may detect all devices (Maybe you can search user-agent for AppleTV and Apple Watch). The ua variable contains the lowercase user-agent, so only search for lowercase string.

     

    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
        }
    }

    Note : code updated (a closing bracket was missing)