Forum Discussion

irshad's avatar
Icon for Nimbostratus rankNimbostratus
Sep 03, 2019

User-Agent Irule to avoid APM policy

Dear Community,   We have scenario like when users access the url from laptops or PCs APM policy needs to take if any mobile handsets it shouldn't. We have applied the iRule but after this not ab...
  • Niels_van_Sluis's avatar
    Sep 03, 2019

    What do you mean with 'avoid APM policy'? If you want to disable the APM policy for some devices you can use the ACCESS::disable command. See:

    For the iRule, try this:

    switch -glob [string tolower [HTTP::header "User-Agent"]] {
        "*iphone*" - 
        "*ipod*" -  
        "*android*" - 
        "*windows mobile*" -
        "*windows phone*" -
        "*nintex-mobile*" -
        "*nintex-tablet*" {
            pool Test-pool
        default {